How do I exclude one folder from a try_files?

Joergi nginx-forum at
Sun Jun 25 20:36:50 UTC 2017

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 thought the root would be inherited as it is set in
the location / block already. Obviously this is not the case.

Thanks again!


Posted at Nginx Forum:,275123,275131#msg-275131

More information about the nginx mailing list