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.
Thank you Andrey,
I use the command
grep -i ‘<virtualhost’ /etc/apache2/sites-enabled/*.conf
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
But can I set Virtualmin to create the sites-enabled/NEWSITE-URL.conf with the right IP ?