Report this

What is the reason for this report?

Virtual host not working for root domain

Posted on October 21, 2015

Hi,

I have created a droplet using the Ubuntu dist with LAMP installed, I also installed webmin to manage my virtual hosts.

The virtual host looks like so

<VirtualHost *:80> DocumentRoot “/var/www/mysite” ServerName mysite.com ServerAlias www.mysite.com <Directory “/var/www/mysite”> allow from all AllowOverride All Options +Indexes </Directory> </VirtualHost>

I have also tried creating a vhost as ServerName www.mysite.com and an alias of mysite.com

I restart Apache after every change.

The DNS settings are correct but no matter which version of the vhost I use the website will not resolve the mysite.com url and it just hits the default Apache (Ubuntu) page.

My knowledge of Apache is limited, can anyone advise of any config changes / issues that may cause or resolve this?

Many thanks

Lee

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.