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

4 posts / 0 new
Last post
#1 Wed, 11/14/2018 - 08:08
ichi

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

Hello, 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. Ichi

Wed, 11/14/2018 - 09:09
andreychek

Howdy,

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

https://www.virtualmin.com/documentation/web/troubleshooting#toc-the-wro...

Wed, 11/14/2018 - 09:34
ichi

Thank you Andrey,

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

/etc/apache2/sites-enabled/NEWSITE-URL.conf: /etc/apache2/sites-enabled/NEWSITE-URL.conf: /etc/apache2/sites-enabled/OLDSITE-URL.conf: /etc/apache2/sites-enabled/OLDSITE-URL.conf:

Does the * explain the trouble ?

Wed, 11/14/2018 - 10:19
ichi

Ah, I got it the page https://www.virtualmin.com/documentation/web/troubleshooting#toc-the-wro... 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 . Thank you very much Andrey !! This was driving me mad… I feel safer with the server now ;-) But can I set Virtualmin to create the sites-enabled/NEWSITE-URL.conf with the right IP ?

Topic locked