Creating new virtual server shows "IP address" as address instead of "*" in apache2 .conf file

3 posts / 0 new
Last post
#1 Sun, 12/23/2018 - 22:20
afdhaal

Creating new virtual server shows "IP address" as address instead of "*" in apache2 .conf file

Howdy,

When I create a new virtual server or sub-server this is how "Webmin -> Apache Webserver -> Existing virtual host" looks like this.

  Virtual Server Any       80  medlk.myolddomain.com /home/abcd/domains/medlk.myolddomain.com/public_html
  Virtual Server Any       80  mydocs.myolddomain.com /home/abcd/domains/mydocs.myolddomain.com/public_html
  Virtual Server 128.xxx.xxx.334 80 test.myolddomain.com /home/abcd/domains/test.myolddomain.lk/public_html

The problem is on the third line of the above code. Instead of "Any 80" is shows "128.xxx.xxx.334 80".

WORKING SOLUTION

After creating a virtual server every time I have to go to /etc/apache2/sites-available and edit the "*.conf" file related to the particular virtual server. Changes I made,
Find <VirtualHost 128.xxx.xxx.227:80> and changed it to, <VirtualHost *:80>
If SSL enabled,
Find <VirtualHost 128.xxx.xxx.227:443> Changed it to, <VirtualHost *:443>

PROBLEM

What changes should I make in Virtualmin to add " * " instead of the "IP address" in the "*.conf" file of apache?

Thank you.

Tue, 12/25/2018 - 10:45
Wed, 01/16/2019 - 23:52
aaronroydhouse

I just experienced this since upgrading to 6.05. I created a new virtual server, and it took down all other sites on a server because they all went to the one site with the IP address instead of the websites with '*'/Any. I could no way in virtualmin to fix it, but I manually edited the apache config back to a '*' instead of the IP address, and that fixed it.

I can't see any system setting to revert this behavior on existing servers, so this is a bug that breaks servers :-(

Topic locked