Skip to content

Instantly share code, notes, and snippets.

@zouzias
Created December 15, 2014 11:27
Show Gist options
  • Save zouzias/d62ca1471d6274da25be to your computer and use it in GitHub Desktop.
Save zouzias/d62ca1471d6274da25be to your computer and use it in GitHub Desktop.
Nginx: Proxy Configuration for Apache Tomcat
# Simple proxying to tomcat
server {
listen nginx.server.com:80;
server_name nginx.server.com;
location / {
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://search.server.com:8080/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment