php and urls with /?xxx

Salem nginx-forum at
Sat Nov 19 03:04:48 UTC 2011

António P. P. Almeida Wrote:
> On 18 Nov 2011 23h31 WET, nginx-forum at
> wrote:

> Try this:
>  [...]

Thanks, but i alway get 500 error.

I'm using php-fpm with chroot-config, not sure what's the right setting
for this.

For "location \.php" i'm using: 
fastcgi_param  SCRIPT_FILENAME /htdocs$fastcgi_script_name;

> Of course you have to fill in the details on
> static file handling,
> blocking the readme.html file, etc.

Is there really no easier way with the same behavior as apache?
/?xxx=xxx is alway /index.php?xxx=xxx :-/


Posted at Nginx Forum:,218588,218590#msg-218590

More information about the nginx mailing list