Virtualmin: login as admin via domain, not IP address

I usually login into VM via IP address:port. Now I need to change this to not as VM user but as admin. I think I’ve made a mistake by setting a user login for that domain. VM uses localhost.localdomain from my hosts file to run. Could you please help me with this? I’m on Ubuntu 14.04. Thanks in advance.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


I’m very sorry but there is not quite enough information here to properly help. Can you please be more descriptive of what you are encountering as an error and what steps we can take to replicate?

It’s important to understand that when asking for help to be as descriptive as possible. This allows users to replicate and help you.

Using the limited information here though, I will try my best. It sounds like you have your VM configured to a non Fully Qualified Domain Name (FQDN) and that is the issue. Virtualmin depends on this. Can you try changing your hostname so that it’s set to a FQDN?

You will want to edit /etc/hostname to match the FQDN you use.

Then you will want to modify /etc/hosts similarly so that it has your actual FQDN instead of localhost.localdomain.

Then you will also want to rename the droplet on the DO control panel to the same FQDN.

This should help you get things going, make sure to restart the droplet or Virtualmin to have the changes take affect.