This content has been marked as final.
Show 1 reply
-
1. Re: How good is Nginx instead Apache
rhusar Jul 24, 2012 4:33 AM (in response to dcarpio)1 of 1 people found this helpfulWell, nginx has build-in proxy support, so it will work out of box if you want to just use HTTP connector. You will need something like this:
server {
listen 80;
server_name example.com;
root /var/www/yourwebapp;
location ~ \.jsp$ {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
}
Also, I did see several modules to bring APJ support for nginx but I would be careful about their stability.