Server virtualmin default page loading but showing different hostname

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version Latest
Virtualmin version Latest
Webserver version ?
Related packages ?

Hello all,

After clean install i did change my sudo nano /etc/hostname
sudo nano /etc/hosts

I removed the one already in the file and add new one like this: vps1.mydomainname.net

After restart the server i try to load the my control panel with the url https://vps1.mydomainname.net:10000 and i get error.

When i go to the same url without the port number https://vps1.mydomainname.net i was able to get the default page and it is showing different (old hostname)

I’ve done changes in contabo customer panel and edit the reverse DNS

I can only log into my virtualmin via old hostname which is showing on the default page

I don’t know how to solve this issue. please advice.

I’m using cloudflare domain and cloudflare DNS

I can’t figure out what the problem is from your description.

Reverse DNS has nothing to do with anything other than mail delivery.

What error?

Are you sure your DNS is right? (Not reverse DNS. The forward DNS A record for this domain name…does it point to your server IP? Are you sure? Check it with host or nslookup on your client computer.)

1 Like

This is some variant of “the wrong site shows up”. We have a FAQ for that. And, it almost certainly has nothing to do with Webmin/Virtualmin. They don’t run under Apache, so Apache problems cannot be, in any way, related to Webmin/Virtualmin problems (unless DNS is wrong, and you’re not talking to the server you think you are).

It can be a few different forms of misconfigurations WRT to VirtualHosts. Could be IPv6 misconfigured, could be a mix of * and IP-based VirtualHosts, could be wrong IP in IP-based VirtualHosts.

1 Like

I have installed Virtualmin on Contabo many times. I did not have to carry out the above operations and Virtualmin has worked flawlessly when I install it.

Why don’t you install Virtualmin on a freshly installed OS and let the Virtualmin installer ask your for the hostname? The entire idea of using a GUI and an install wizard is to avoid human error - be it due to syntax and parameters in the CLI or simple typography.

You should use Virtualmin for operations if you are installing Virtualmin on your server.

1 Like

After install the OS and if change the hostname is this the correct way?


This is VPS not a Dedicated server

Just wondering why you have to change it ? It’s not used for too much, I would hope your provider has set the ptr record to match their predefind hostname, if that’s the case mail services will work correctly and of course when you add a virtual server virtualmin will configure webmin and the installed webserver to connect to the domain you have created and of course webmin/virtualmin through that domain name

1 Like

You have webmin, use that and apply changes. Not sure why use use contaboservers name as well, surely you have domain name you can use

1 Like

Here is what i did

Do i have to remove the search domain what was already there?

If i don’t fix this sometimes my email having issues.

Subdomain, not domain.

The hostname should be a subdomain always, so in the box marked “Add my domain here” in the image above, it should be subdomain and not domain.

1 Like

i.e. virtualmin.mydomain.com

1 Like

I think everything is fine now :slight_smile: both area showing the same host name now. i was able to log into my control panel using the same name with the port.

Eg. server.mydomain.net:10000

Just want to thank you all for your kind support :grinning:

1 Like