/edit/ I have fixed the default website issue. I have made a dummy vhost, made it default, and have put an empty index.html file inside its directory.
Thats does not fix my LetsEncrypt issue, but it appears to be a known issue. To bad the ticket is 2 years old. So i’m not really thrilled to see it being fixed soon ^^
Hi,
I’m new to VirtualMin, so I have to warn you that this might be a stupid question, anyway here it goes.
I’m running a Virtualmin, and I have put a LetsEncrypt certificate in it.
Now I was adding a new virtualserver with SSL enabled. I created some a records for it; mail.domain.ltd / webmail / admin etc etc (external A records, not using virtualmin as NS).
When I wanted to generate an SSL Certificate I got an error, and I could see drupal tags inside it… I thought mmm how is that possible, the webspace for
this newly created VM is empty? So I did the test! browsing to http://webmail.domain.ltd and I see the website of the first vhost…
Every A record that I make, goes to that ‘default’ website. Also when I enter the http address instead of the https adress for my virtualmin page I see that same default website.
I googled, and found this; “Server Configuration -> Website Options -> Default website for IP address.” But it is not there (or i’m looking over it…).
If it doens’t exists it should show a 404 or something instead of redirecting. If I can stop the redirecting, will I be able to create an SSL cert for it?
The reason I’m asking that (I might be wrong) I want to be able to use webmail.domain1.ltd and webmail.domain2.ltd with a correct SSL cert?
Or am I doing that wrong?
Sorry for the long post. Beginner
Best regards,
Jordy