Welcome! Log In Create A New Profile

Advanced

Re: How do I exclude one folder from a try_files?

Francis Daly
June 26, 2017 12:22PM
On Sun, Jun 25, 2017 at 04:36:50PM -0400, Joergi wrote:

Hi there,

> location ^~ /wiki/images {
> # Separate location for /wiki/images
> root /home/wiki/www;
> }
>
> This is all I needed.

Good that you have an answer that works for you; thanks for confirming that.

> I thought the root would be inherited as it is set in
> the location / block already. Obviously this is not the case.

Correct, it is not. Inheritance goes from http to server, from server to
location, and from location to nested-location; and does not go between
parallel locations.

One request is handled in one location; and only the config in that
location, or inherited in to it, applies.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How do I exclude one folder from a try_files?

Joergi June 24, 2017 06:08PM

Re: How do I exclude one folder from a try_files?

B.R. via nginx June 25, 2017 04:38AM

Re: How do I exclude one folder from a try_files?

Joergi June 25, 2017 07:50AM

Re: How do I exclude one folder from a try_files?

Francis Daly June 25, 2017 02:04PM

Re: How do I exclude one folder from a try_files?

Joergi June 25, 2017 04:36PM

Re: How do I exclude one folder from a try_files?

Francis Daly June 26, 2017 12:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
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