Welcome! Log In Create A New Profile

Advanced

Re: Static content and Front Controller pattern under same base URI

J.R.
October 18, 2019 09:32AM
> I'm not a big fan of the location that sets the 418 error_page to the
> @foo_front_controller named location, but I don't know of any other way
> to essentially do a "return @foo_front_controller". Is there a better
> way?

Use "try_files" instead with a filename that will never exist (i.e.
underscore) so it will always end up going to the named location:

try_files _ @foo_front_controller;
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Static content and Front Controller pattern under same base URI

J. Lewis Muir October 17, 2019 10:08PM

Re: Static content and Front Controller pattern under same base URI

J.R. October 18, 2019 09:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready