Welcome! Log In Create A New Profile

Advanced

Re: nginx redirect

April 11, 2011 03:06PM
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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx redirect

neon_cyrex April 06, 2011 02:05PM

Re: nginx redirect

Sergey Shepelev April 06, 2011 02:20PM

Re: nginx redirect

neon_cyrex April 07, 2011 12:30AM

Re: nginx redirect

Igor Sysoev April 07, 2011 12:38AM

Re: nginx redirect

neon_cyrex April 11, 2011 02:59PM

Re: nginx redirect

Igor Sysoev April 11, 2011 03:06PM

Re: nginx redirect

neon_cyrex April 22, 2011 12:46AM

Re: nginx redirect

neon_cyrex April 25, 2011 12:01PM

Re: nginx redirect

Alexander Kochetov April 22, 2011 01:06AM

Re: nginx redirect

neon_cyrex April 26, 2011 05:27AM

Re: nginx redirect

Vladimir Sopot February 25, 2015 08:54AM

Re: Re: nginx redirect

Styopa Semenukha February 25, 2015 11:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready