Welcome! Log In Create A New Profile

Advanced

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

June 25, 2017 07:50AM
Thanks for the notes!

I am on a shared server and there already is some kind of server configuration. I sadly cannot even see this server config, but I know it contains lots of location blocks, which at least partly interfere with what I am trying to do. That is why I use modifiers to make _my_ blocks kick in instead of theirs. You might say I should change the host ... sadly it's not so easy... :-(

So back to my problem:

I already do have this location block in my config:

location /wiki/images {
# Separate location for /wiki/images
try_files $uri =404;
}

However, the rewriting from location ~* "^/" { } is still taking place also inside folder /wiki/images. I want nginx to return the existing file or error 404. Shouldn't my block do exactly that?

Jörg
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: 324
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