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 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.)
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.
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.
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