Skip to content

Instantly share code, notes, and snippets.

@surma
Created March 14, 2013 16:44
Show Gist options
  • Save surma/5162922 to your computer and use it in GitHub Desktop.
Save surma/5162922 to your computer and use it in GitHub Desktop.
NginX for Auth Dialog
events {
worker_connections 1024;
}
# http {
# server {
# listen localhost:8080;
# server_name elasticpass.surmair.de;
# location / {
# proxy_pass http://localhost:8081;
# }
# location /api {
# rewrite /api(/.*) $1 break;
# proxy_pass http://s3.amazonaws.com:80;
# }
# }
# }
http {
server {
listen localhost:80;
server_name localdev.surmair.de;
location / {
proxy_pass http://localhost:8080;
}
location /api {
# rewrite /api(/.*) $1 break;
proxy_pass http://localhost:8081;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment