nginx symfony2 configuration

Francis Daly francis at daoine.org
Mon Mar 2 22:14:11 UTC 2015


On Mon, Mar 02, 2015 at 09:49:37PM +0100, Pascal Christen wrote:
> 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,

> how can I fix this problem?

> > >        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.

I guess that you want this request to match this nested location? If so,
changing it to be

  location ~ ^/backend/(app|app_dev)\.php(/|$) {

should make it match.

That may be enough to get you looking in the right place for the full fix,
if that is not it.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list