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
Мне подсказали в другом месте и вот
окончательный вариант для maxsite cms :)
[code]
server {
listen 80;
server_name site.ru;
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;
access_log off;
}
location / {
root /path/to/maxsite;
index index.php;
if (-f $request_filename) {
expires max;
break;
}
if (!-e $request_filename){
rewrite (.*) /index.php/$1;
}
}
}
[/code]
Всем спасибо ;)
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,125748,171816#msg-171816
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|