Created
April 25, 2020 22:55
-
-
Save joshgoebel/82ac3a345426d0ae823e4d80253c2021 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
location @missing { | |
# how can i always log this? | |
return 404; | |
} | |
location ~* \.(jpg|jpeg|gif|css|js)$ { | |
access_log off; | |
expires 30d; | |
rewrite_log on; | |
rewrite "^(.*)\.([0-9a-fA-F]{7})\.(.*)$" $1.$3 last; | |
try_files $uri @missing; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment