Skip to content

Instantly share code, notes, and snippets.

@duguying
Last active September 27, 2016 14:03
Show Gist options
  • Save duguying/99856642b684b2e2cdfa894cbf17d8fb to your computer and use it in GitHub Desktop.
Save duguying/99856642b684b2e2cdfa894cbf17d8fb to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name o.duguying.net;
location / {
try_files /_not_exists_ @backend;
}
location @backend {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
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