Convert lighttpd rewrite rule to nginx

António P. P. Almeida appa at perusio.net
Thu Jul 26 07:36:37 UTC 2012


On 26 Jul 2012 09h23 CEST, nginx-forum at nginx.us wrote:

> Yeap, both:
>
> sudo -u php ls /path/to/php/file.php
>
> and 
>
> sudo -u php cat /path/to/php/file.php
>
> Work. However, took a peak at the error log and found this:
>
> 2012/07/25 23:05:12 [error] 1040#0: *1 FastCGI sent in stderr:
> "Access to the script '/srv/www/domains/app.mydomain.com/' has been
> denied (see security.limit_extensions)" while reading response
> header from upstream, client: XXX.XXX.XXX.91, server:
> app.mydomain.com, request: "GET / HTTP/1.1", upstream:
> "fastcgi://127.0.0.1:9000", host: "app.mydomain.com"
>
> Any idea what that means?

Yes. It means that the file that you're trying to access has an
extension that your PHP runtime config forbids. You must enable that
extension by setting the security.limit_extensions parameter.

--- appa






> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,228909,228990#msg-228990
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list