How to create location blocks in nginx for a single file but have it follow the rules of another location block in addition to it's own?
- by Ryan Detzel
I have a location block for / that does all of my fastcgi stuff and it has a normal timeout of 10s. I want to be able to have different timesouts for certain files(/admin, sitemap.xml). Is there an easy way to do this without copying the entire location block for each location?
location /admin{
fastcgi_read_timeout 5m;
#also use the location…