Skip to content

Instantly share code, notes, and snippets.

@sundbp
Created April 20, 2012 13:20
Show Gist options
  • Select an option

  • Save sundbp/2428513 to your computer and use it in GitHub Desktop.

Select an option

Save sundbp/2428513 to your computer and use it in GitHub Desktop.
server {
listen 80; ## listen for ipv4; this line is default and implied
location ^~ /(javascripts|stylesheets|images)/ {
root /home/gap/tb_apps/gap_app/public;
}
location ^~ favicon {
root /home/gap/tb_apps/gap_app/public;
}
location / {
root /home/gap/tb_apps/gap_app;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment