Created
October 23, 2017 04:54
-
-
Save Daniel15/d12f9170db16f36183127657c16d61fd to your computer and use it in GitHub Desktop.
ss.dan.cx before dan.cx
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
# Handle requests for files that could be screenshots. | |
# Try ss.dan.cx files before passing to ASP.NET | |
location ~ "^/\d{4}/\d{2}/.+\.(png|jpg|jpeg|gif|mp4)$" { | |
alias /var/www/; | |
try_files dan.cx/public/$uri ss.dan.cx/$uri @aspnet; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment