1

possible to have 2 nginx location block with same matching criteria?

view story
linux-howto

http://serverfault.com – For example, if I want to split my prevent hotlink block from caching definition block, and put them in seperate .conf file to be included latter by main.conf, will nginx only match the first one? location ~* \.(?:jpg|jpeg|gif|png|ico)$ { valid_referers none blocked somedomain.com; if ($invalid_referer) { return 403; } } ... location ~* \.(?:jpg|jpeg|gif|png|ico)$ { expires 1M; add_header Cache-Control "public"; } (HowTos)