Created
October 25, 2016 15:11
-
-
Save exileed/7410862b35701c8d661daf57fb9fb52b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream staticcontent { | |
server myserv-1.local; | |
server myserv-2.local; | |
} | |
server { | |
location ~* \.(ico|js|css|png|gif|jpe?g|swf|txt|html?|htc)$ { | |
expires 7d; | |
proxy_next_upstream error timeout invalid_header http_500 updating; | |
proxy_cache_valid 200 7d; | |
proxy_set_header Host $host; | |
proxy_pass http://staticcontent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment