Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx redirect
Может кому пригодиться, как вопрос с php
решается. Всем большое спасибо
location = /index.php$ {
rewrite ^ http://адрес/ permanent;
}
location = / {
try_files /index.php = 404;
root /home/services/www;
fastcgi_pass phpfcgi;
fastcgi_param SCRIPT_FILENAME
/home/services/www/index.php;
include fastcgi_params;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,188841,190253#msg-190253
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|