Welcome! Log In Create A New Profile

Advanced

Re: nginx symfony2 configuration

Francis Daly
March 02, 2015 02:52PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx symfony2 configuration

Pascal Christen March 02, 2015 11:50AM

Re: nginx symfony2 configuration

Francis Daly March 02, 2015 02:52PM

Re: nginx symfony2 configuration

Pascal Christen March 02, 2015 03:50PM

Re: nginx symfony2 configuration

Francis Daly March 02, 2015 05:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 288
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready