On Thu, Jul 26, 2012 at 2:23 PM, justin <nginx-forum@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?
>
try adding
fastcgi_param SCRIPT_NAME /controller.php;
to the location ~ ^[^.]+$ block.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx