Welcome! Log In Create A New Profile

Advanced

URL query string problem

Posted by torres1451 
URL query string problem
May 31, 2012 03:04PM
Hello all!
I have a problem related to nginx or fastcgi!
I have a site running with nginx webserver.
There would be one php file that's loading images not from the webroot but from other location.
For example: http://domain.tld/img.php/2012/05/image.png
The php script is taking parameters from the $_SERVER['QUERY_STRING'] so from that string what's after the .php
For this is the nginx giving 404 error because it want to search it like this> /var/www/domain.tld/web/img.php/2012/05/image.png
but this image is under /var/www/domain.tld/images/2012/05/image.png
Before on apache it was working. Could be there some workaround on nginx or it would be easier to rewrite the php script?
Thank's in advance for your help!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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