PDA

View Full Version : Nginx on a Perfect Server


pineapple
23rd August 2010, 05:06
Hello

I have a Debian Lenny server running ISPConfig 2 and am wondering if it's possible to install and configure Nginx as a reverse proxy to Apache listening on another port (say 8080) so that it sits in front of Apache as described in this article:

http://markmaunder.com/2009/how-to-handle-1000s-of-concurrent-users-on-a-360mb-vps/

regards and thanks,

Andrew

Mark_NL
23rd August 2010, 09:29
If you read the page you pasted, you should run into a link which describes what you want .. http://wiki.nginx.org/NginxHttpProxyModule

it basicly comes down to:

1. install nginx
2. put in your config:
location / {
proxy_pass http://localhost:8000;
proxy_set_header X-Real-IP $remote_addr;
}

now all your requests will be proxied through nginx.

pineapple
23rd August 2010, 10:01
Thanks Mark - and my ISPConfig won't be affected?

Andrew

Mark_NL
23rd August 2010, 10:19
afaik know it won't .. just give it a try .. :)