A new virtual server takes over other sites on http (not https)

After I create a new virtual server with Virtualmin the access takes over other sites if they are accessed with http.
It doesn’t interfere if it is accessed via secure https.

So http://old-site-url >> Wrong site : it goes to http://new-site-url

So https://old-site-url >> Correct site.

My settings of apache are old and it now I am afraid to create any new site because it disturbed.
They had been created via Virtualmin but when we secured the sites with letsencrypt the setting had been added manualy.
I thing that it does confuse Virtualmin…
Thank for any help.


You may be seeing the issue described here… this link has some troubleshooting steps:


Thank you Andrey,

I use the command
grep -i ‘<virtualhost’ /etc/apache2/sites-enabled/*.conf

/etc/apache2/sites-enabled/OLDSITE-URL.conf:<VirtualHost *:80>

Does the * explain the trouble ?

Ah, I got it the page https://www.virtualmin.com/documentation/web/troubleshooting#toc-the-wrong-site-shows-up-V5JtxdKg point it out :
“You would also want to verify that each VirtualHost block lists an IP address, and not an asterisk (*) character.”
This was the trouble with the <VirtualHost *:80>. Thank you very much Andrey !!
This was driving me mad… I feel safer with the server now :wink:
But can I set Virtualmin to create the sites-enabled/NEWSITE-URL.conf with the right IP ?