Skip to content

Instantly share code, notes, and snippets.

@putnamhill
Created March 12, 2022 14:48
Show Gist options
  • Save putnamhill/4f8991158fb0ba99d5cdd2e133a102d0 to your computer and use it in GitHub Desktop.
Save putnamhill/4f8991158fb0ba99d5cdd2e133a102d0 to your computer and use it in GitHub Desktop.

nginx snippets

internal redirects

../test-internal-redirects.conf

location = /real1 { try_files /real1.txt =404; }
location = /real2 { try_files /real2.txt =404; }
# ...

server.conf

server {
    include test-internal-redirects.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment