I remove my domain in the host file to fix a problem. Will this cause other problems?

Operating system: Ubuntu
OS version: 20.04 LTS

My website was always showing the Apache Ubuntu default page when accessing example.com. But www.example.com, admin.example.com, mail.example.com, webmail.example.com were all work normally. So I thought probably the cause is that Apache is treating example.com as, which I haven’t set anything to listen to. Then after I commented out that line in the host file and restarted the Apache server, the default page gone.

I’m not sure if this fix will cause some other unexpected problem. Does someone know is it safe?

Is the hostname using the same domain as a public site?


Yes. After I changed that, I still could see the hostname and IP displaying normally like example.com ( in the dashboard.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.