Skip to content

Instantly share code, notes, and snippets.

@benjiao
Created November 6, 2015 04:42
Show Gist options
  • Save benjiao/283584e019e2afecaffe to your computer and use it in GitHub Desktop.
Save benjiao/283584e019e2afecaffe to your computer and use it in GitHub Desktop.
Nginx config for Angular app under sub-URI
location /testapp/ {
rewrite ^/testapp/(.*) /$1 break;
proxy_redirect off;
proxy_pass http://127.0.0.1:9090;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment