Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
php файл не парсится, а отда	ётся как есть
 
- To: nginx-ru@xxxxxxxxx
 
- Subject: php файл не парсится, а отда	ётся как есть
 
- From: "mennanov" <nginx-forum@xxxxxxxx>
 
- Date: Sun, 11 Dec 2011 15:25:41 -0500
 
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;	d=mickey.jlkhosting.com; s=x; 	h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To;	bh=smcl3+SfrXs7LJzhRe/DuO2Y5zSiIvy0ho7ra1d+H54=; 	b=Iiq5vKVCiqQOFywnBi3qLUDALyODhq8iyt6pPyPABRej3e6WJtVGbouGnj8WhfKHwcqRajYkqQlDS5/ai8vEcyVvK5vyLw39C17aB90Wh0i+KDKQzMI903UiP0FtGnY5;
 
 
 
Здравствуйте, у меня на проекте
следующая структура папок:
engine/
__index.php
webroot/
__images/
__css/
__cms/
______engine/
_________index.php
______webroot/
_________images/
_________css/
_________js/
___________uploader/
_____________upload.php
___________jquery/
others/
И такой конфиг:
server {
    listen       8080;
    server_name  glinka.fm;
    root /home/renat/www/glinka;
    index index.php index.html;
    location / {
        try_files       /webroot/$uri /engine/index.php?$args;
    }
    location ~ ^/cms/?(.*)$ {
      try_files /webroot/cms/webroot/$1
/webroot/cms/engine/index.php?$args;
    }
    location ~ \.php$ {
      try_files $uri /webroot/$uri =404;
      include fastcgi.conf;
    }
}
Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,219884,219884#msg-219884
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
 
 |