Nginx as reverse proxy

2 posts / 0 new
Last post
#1 Sat, 07/16/2011 - 20:41
greatwitenorth

Nginx as reverse proxy

I know it's been discussed that there is no Nginx support for virtualmin, but I was wondering if someone could give me some details on setting up Server Templates to work correctly with Nginx running as a reverse proxy to serve up static content.

I found how to change apache's default port in the server template setup (mine runs on port 82) but I need to know how to change the IP. I want apache to listen on 127.0.0.1 rather than the servers IP address. Any thoughts on how to do this? I'm still happy to edit Nginx files manually when I add a new site.

Sun, 07/17/2011 - 02:27
greatwitenorth

I've found how to change an existing sites port number and IP under 'Server Configuration' -> 'Change IP'. I changed the IP to 'Use Private Address' and set it to 127.0.0.1. This worked for one site, but when I tried another virtual server it said that IP is already in use. Since Nginx is receiving all incoming traffic on the public IP is there any way through virtualmin to tell all sites to use the private localhost IP?

Topic locked