Created
December 15, 2014 11:27
-
-
Save zouzias/d62ca1471d6274da25be to your computer and use it in GitHub Desktop.
Nginx: Proxy Configuration for Apache Tomcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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