Welcome! Log In Create A New Profile

Advanced

Re: nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

August 04, 2010 11:12AM
On Wed, Aug 04, 2010 at 06:50:31AM -0400, Per Hansson wrote:

> Hi, I'm having a problem with nginx after upgrading php-fpm from PHP
> version 5.3.2 > 5.3.3 (internal php-fpm version 0.6.0 > 0.6.5)
> After doing the upgrade a "pretty URL's" fastcgi_pass I use no longer
> works, now php-fpm does not care about the URL's, so it is very strange
> if that would be the culprit, I've asked the php-fpm guys without
> getting anywhere, I've also looked for it's changelog for versions 0.6.0
> > 0.6.5 without luck...
>
> This is the rewrite I use:
> [code]
> ## Forum Archive fastCGI pass
> location /vb/all/ {
> rewrite ^/vb/all/windows/(.*)$ /vb/all/windows?$1 break;
> rewrite ^/vb/all /vb/all/windows/ permanent;
> fastcgi_pass unix:/dev/shm/php.sock;
> fastcgi_param SCRIPT_FILENAME
> $document_root/vb/all/windows;
> fastcgi_param QUERY_STRING $query_string;
> }
> [/code]
>
>
> So you see the file named "windows" without extension is my PHP file,
> with php 5.3.2 this works great, you can see it live here:
> http://www.techspot.com/vb/all
>
> But with php 5.3.3 it fails, I'm linking a log excerpt of the error
> The top part is where it is working
> And below that my internal testserver with the updated PHP where it is
> not working...
> http://pastebin.com/CqxzUqLf

I have no idea why it can not work on php 5.3.3, but it's better to
use this more clear configuration:

location ~ ^/vb/all/windows/(.*)$ {
fastcgi_pass unix:/dev/shm/php.sock;
fastcgi_param SCRIPT_FILENAME $document_root/vb/all/windows;
fastcgi_param QUERY_STRING $1;
}

location = /vb/all/ {
rewrite ^ /vb/all/windows/ permanent;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

Per Hansson August 04, 2010 06:50AM

Re: nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

Igor Sysoev August 04, 2010 11:12AM

Re: nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

Per Hansson August 04, 2010 04:04PM

Re: nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

Per Hansson August 05, 2010 07:41AM

Re: nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem

Per Hansson August 14, 2010 07:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
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