Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Created October 23, 2017 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daniel15/d12f9170db16f36183127657c16d61fd to your computer and use it in GitHub Desktop.
Save Daniel15/d12f9170db16f36183127657c16d61fd to your computer and use it in GitHub Desktop.
ss.dan.cx before dan.cx
# 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