Skip to content

Instantly share code, notes, and snippets.

@r38y
Created April 14, 2011 22:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r38y/920744 to your computer and use it in GitHub Desktop.
Save r38y/920744 to your computer and use it in GitHub Desktop.
nginx vhosts for proxying requests from facebook to my local machine.
server {
listen 3838;
server_name r38y.publicdomain.com;
location / {
proxy_pass http://web1.tunnlr.com:publicport/;
proxy_redirect off;
}
}
server {
listen 3839;
server_name r38y.publicdomain.com;
ssl on;
ssl_certificate /etc/nginx/ssl/mallarkey.crt;
ssl_certificate_key /etc/nginx/ssl/mallarkey.key;
location / {
proxy_pass http://web1.tunnlr.com:publicport/;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment