Convert lighttpd rewrite rule to nginx

justin nginx-forum at
Thu Jul 26 07:23:00 UTC 2012

Yeap, both:

sudo -u php ls /path/to/php/file.php


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/' has been denied (see
security.limit_extensions)" while reading response header from upstream,
client: XXX.XXX.XXX.91, server:, request: "GET /
HTTP/1.1", upstream: "fastcgi://", host:

Any idea what that means?

Posted at Nginx Forum:,228909,228990#msg-228990

More information about the nginx mailing list