Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx redirect
On Mon, Apr 11, 2011 at 02:59:49PM -0400, neon_cyrex wrote:
> Может кому пригодиться, как вопрос с 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;
> }
Неправильно он решился.
location = /index.php {
rewrite ^ http://адрес/ permanent;
}
location = / {
root /home/services/www;
fastcgi_pass phpfcgi;
fastcgi_param SCRIPT_FILENAME /home/services/www/index.php;
include fastcgi_params;
}
--
Igor Sysoev
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|