ðòïåëôù 


  áòèé÷ 


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



3 ÆÅ×ÒÁÌÑ 2011šÇ. 13:43 ÐÏÌØÚÏ×ÁÔÅÌØ xopek <nginx-forum@xxxxxxxx> ÎÁÐÉÓÁÌ:
> üÔÏ ÎÅÐÒÁ×ÉÌØÎÁÑ
> ËÏÎÆÉÇÕÒÁÃÉÑ, ×ÏÔ
> ÐÒÁ×ÉÌØÎÁÑ:
>
> š š š šlocation / {
> š š š š š štry_files š$uri š$uri/ š @maxsite;
> š š š š}
>
> š š š šlocation ~ \.php {
> š š š š š fastcgi_pass šunix:/tmp/php-fpm.sock;
> š š š š š fastcgi_index index.php;
> š š š š š include fastcgi_params;
> š š š š š fastcgi_param SCRIPT_FILENAME
/path/to/maxsite$fastcgi_script_name;
> š š š š š fastcgi_param PATH_INFO $fastcgi_script_name;
> š š š š}
>
> š š š šlocation @maxsite {
> š š š š š fastcgi_pass šunix:/tmp/php-fpm.sock;
> š š š š š include fastcgi_params;
> š š š š š fastcgi_param SCRIPT_FILENAME /path/to/maxsite/index.php;
> š š š š š fastcgi_param PATH_INFO /index.php$uri;
> š š š š}
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru

ôÁËÁÑ ÐÒÁ×ÉÌØÎÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ ×ÙÄÁÅÔ
ÏÛÉÂËÕ 404 ÎÁ ÌÀÂÕÀ ÓÔÒÁÎÉÃÕ

root /site/maxsite;
ÎÅ ÚÁÂÙÌÉ?


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


 




Copyright © Lexa Software, 1996-2009.