Skip to content

Instantly share code, notes, and snippets.

@jameskyle
Created May 1, 2014 19:33
Show Gist options
  • Select an option

  • Save jameskyle/11459703 to your computer and use it in GitHub Desktop.

Select an option

Save jameskyle/11459703 to your computer and use it in GitHub Desktop.
server {
location /roadrage {
rewrite /roadrage/(.*) /$1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
# I've tried with and without the trailing /
proxy_pass http://cl1.dlstx.met:8888/;
proxy_redirect default;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment