How do I exclude one folder from a try_files?

Joergi nginx-forum at forum.nginx.org
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!

Jörg

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275123,275131#msg-275131



More information about the nginx mailing list