ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nginx rewrite for Maxsite CMS



nginx 1.0.5. У меня работает вот с таким
конфигом:

            location / {
                root        /path/maxsite;
                index       index.php index.html index.htm;
                try_files $uri $uri/ /index.php?q=$uri&$args;
            }
            location ~ /\.ht {
                deny        all;
            }
            error_page      500 502 503 504         /50x.html;
            location = /50x.html {
                root        /usr/local/www/nginx-dist;
            }
            location ~* \.php$ {
                fastcgi_pass        unix:/tmp/php-fpm.sock;
                fastcgi_index       index.php;
                fastcgi_param       SCRIPT_FILENAME 
/path/maxsite$fastcgi_script_name;
                include             fastcgi_params;

            }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,125748,214182#msg-214182

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.