nginx symfony2 configuration

Pascal Christen tronje85 at gmail.com
Mon Mar 2 20:49:37 UTC 2015


hi

you're right: there is an "Not a directory" error.

the error log is :

2015/03/02 21:40:52 [error] 20047#0: *8
"/Users/test/myproject/backend/web/app.php/index.html" is not found (20:
Not a directory), client: 127.0.0.1, server: localhost, request: "GET
/backend/app.php/ HTTP/1.1", host: "localhost:9090"
how can I fix this problem?


2015-03-02 20:50 GMT+01:00 Francis Daly <francis at daoine.org>:

> On Mon, Mar 02, 2015 at 05:48:31PM +0100, Pascal Christen wrote:
>
> Hi there,
>
> > If I navigate in
> > browser to : http://localhost:9090/backend/app_dev.php/, I get a 404
> Error
> > from nginx..
>
> The request is /backend/app_dev.php/.
>
> >        location / {
>
> It could match this location, but there is a better match.
>
> >        location /backend {
>
> It could match this location, and it does because there is no better match.
>
> >            alias   /Users/test/myproject/backend/web;
> >
> >            location ~ ^/(app|app_dev)\.php(/|$) {
>
> It does not match this nested location.
>
> So the config says "serve the directory
> /Users/test/myproject/backend/web/app_dev.php/".
>
> > What I'm doing wrong?
>
> What does the error_log say? Anything about "Not a directory"?
>
>         f
> --
> Francis Daly        francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150302/d6e1a1c3/attachment.html>


More information about the nginx mailing list