Skip to content

Instantly share code, notes, and snippets.

@tracker1
Created September 11, 2014 16:47
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 tracker1/20a55450e34d4e9c452b to your computer and use it in GitHub Desktop.
Save tracker1/20a55450e34d4e9c452b to your computer and use it in GitHub Desktop.
nginx notes

config try_files with proxy_pass / proxy fallback for static content (listing.prod-classiccars.com)

  location ^~ / {
    try_files $uri $uri/ @proxyslash;
  }
  location @proxyslash {
    proxy_pass http://127.0.0.1:8080;
  }

  location ^~ /testapp1/ {
    try_files $uri $uri/ @proxytestapp1;
  }
  location @proxytestapp1 {
    proxy_pass http://127.0.0.1:8081;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment