Welcome! Log In Create A New Profile

Advanced

Re: Ngix not picking up the index file.... after upgrade

July 25, 2009 03:06AM
On Sat, Jul 25, 2009 at 02:35:28PM +0800, Shri @ DevLib.Org wrote:

> I have had this working for ever and some how after the upgrade to 0.8.x it
> seems to have stopped working.
>
> The following config results in the http://www.hostname.com/classifieds/
> not working.
>
> http://www.hostname.com/classifieds/index.php pulls up the correct file.

Probably, you need:

location / {
...
index index.php;
}


> What am I missing? (Yes, I do need path_info to be set correctly)
>
> location /classifieds/(.+\.php)(/.+)$ {
> set $script $uri;
> set $path_info "";
> if ($uri ~ "(.+\.php)(/.+)") {
> set $script $1;
> set $path_info $2;
> }
>
> fastcgi_param SCRIPT_FILENAME
> /site/expat/oct08$fastcgi_script_name;
> fastcgi_pass phpbackend;
> fastcgi_param PATH_INFO $path_info;
> include fastcgi_params;
> }
>
> Help please. :)

Where do you use $script ?

Now you can use:

location ~ /classifieds/(.+\.php)(/.+)$ {

fastcgi_split_path_info ^(.+\.php)(/.+);

fastcgi_param SCRIPT_FILENAME /site/expat/oct08$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;

fastcgi_pass phpbackend;
include fastcgi_params;
}


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Compiling nginx with openssl on Debian Lenny

mrginx July 23, 2009 03:53AM

Re: Compiling nginx with openssl on Debian Lenny

Igor Sysoev July 23, 2009 03:55AM

Re: Compiling nginx with openssl on Debian Lenny

mrginx July 23, 2009 04:30AM

Re: Compiling nginx with openssl on Debian Lenny

Igor Sysoev July 23, 2009 04:34AM

Re: Compiling nginx with openssl on Debian Lenny

Nuno Magalhães July 23, 2009 05:57AM

Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Tom Keyser July 24, 2009 06:51PM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

mike July 24, 2009 07:01PM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Michal Kowalski July 24, 2009 11:19PM

Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 02:35AM

Re: Ngix not picking up the index file.... after upgrade

Igor Sysoev July 25, 2009 03:06AM

Re: Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 03:34AM

Re: Ngix not picking up the index file.... after upgrade

Shri @ DevLib.Org July 25, 2009 04:06AM

debian package for version > 0.6.32

Tom Keyser July 25, 2009 04:50AM

Re: debian package for version > 0.6.32

Olivier B. July 25, 2009 05:36AM

Re: debian package for version > 0.6.32

Tom Keyser July 25, 2009 06:21AM

Re: debian package for version > 0.6.32

Tom Keyser July 25, 2009 07:25AM

Re: debian package for version > 0.6.32

Olivier B. July 25, 2009 07:56AM

Re: debian package for version > 0.6.32

merlin corey July 25, 2009 08:04AM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Tom Keyser July 25, 2009 02:48AM

Re: Anyone with experience installing Nginx in a Vyatta firewall box (Debian 4.2.3-2)

Michal Kowalski July 25, 2009 08:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 237
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready