Virtual Server - problems - website - getting the wrong html data

Hello everybody.

I am having problems trying to create a simple Virtual Server.

The thing is that when I try to acces “mydomain.com” … it sends me the default index.html store in /var/www/html/ instead of the one store in /home/userformydomain/public_html

This is driving me crazy, I have been hazlleing with this issue for the whole day.

Details:

  • OS: Ubuntu 16.04 LTS (supported by virtualmin)
  • The apache server created the virtual host as the image shows.
  • the BIND DNS server has created the zone and the corresponding records for this new virtual server.
  • The directories and files where created succesfully.
  • During the creation of the virtual server where no errors.
  • no errors found in /var/log/virtualmin related to this virtual server
  • the files related to Apache2 where created in:
    • /etc/apache2/sites-enabled
    • /etc/apache2/sites-available

DONT KNOW WHAT TO DO WITH THIS ISSUE!

Dont know what else can I do.

Please help.

Howdy,

You may want to try disabling the default Ubuntu website… you can do that with this command:

a2dissite 000-default