Created
April 25, 2020 22:55
This file contains hidden or 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