Skip to content

Instantly share code, notes, and snippets.

@anddam
Created July 2, 2021 21:46
Show Gist options
  • Save anddam/8841d29523ce3a706c2c9443ff8eadfa to your computer and use it in GitHub Desktop.
Save anddam/8841d29523ce3a706c2c9443ff8eadfa to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name a.server.invalid;
root /var/www/a;
index index.html;
location = /foo {
try_files /var/www/a/foo.pdf =404;
}
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment