Virtualmin - how to set the default apache virtual host ip address to localhost (127.0.0.1)

Hi all,

firstly I would like to thank you for great job that you have done when creating virtualmin :-)

I have a little newbie question:

I set up varnish as caching proxy and altered Apache to listen on localhost (127.0.0.1) to all request comming from varnish which listens on public IP. My question is: how can I set up all the virtualhosts to be created with this IP address? Currently all new virtualhosts are being created with public IP address which messes up with Apache config and I cannot create them from the backend (well I can but I have to manually alter .conf files for each).

Thanks

Lukas

Status: 
Active

Comments

Howdy -- if you go into System Settings -> Virtualmin Config -> Network Settings, you can tweak "Network interface for virtual addresses" and/or "Default virtual server IP address" to change the IP that's used for domains configured in Apache.

You'd also want to make sure "Default IP address for DNS records" is not set to the default, "Same as virtual server IP", or else it would try to use "127.0.0.1" for your DNS records. You can either explicitly set your public IP, or have it automatically detect it.

This support area is for folks using Virtualmin Pro though... if you're using Virtualmin GPL, you'd want to pop your questions in the forums. We monitor those, along with lots of wonderful folks in the community. Thanks!

Thanks! I will do that next time. It was my first comment immediatelly after reigstration though :-)