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

2017-06-25 Thread Joergi
Hi Francis, thank you for your helpful posts! Also thanks for the answer in my other thread from last December. I just now spotted your response there. You are right: location ^~ /wiki/images { # Separate location for /wiki/images root /home/wiki/www; } This is all I needed. I

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

2017-06-25 Thread Francis Daly
On Sun, Jun 25, 2017 at 07:50:10AM -0400, Joergi wrote: Hi there, > 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

Re: Help on proxy_ssl_trusted_certificate

2017-06-25 Thread alpotr
HI, Ok, I changed the depth to 4 and it worked. The certificate chain is like this and the pem file contains all the certificates: 0 s:/OU=Domain Control Validated/CN=test.paydollar.com i:/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certs.godaddy.com/repository//CN=Go Daddy Se

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

2017-06-25 Thread Joergi
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_ bl

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

2017-06-25 Thread B.R. via nginx
You do not seem to be understanding what you are doing. First, all path start with '/', thus your 'location ~* wiki/images/' directive will never match anything. Second, why are you using regex locations? Prefix ones are most efficient as you do not need any special processing inside the location