Report this

What is the reason for this report?

virtual domains ubuntu www. pointing to wrong server folder!!

Posted on October 16, 2013
iam

By iam

Hi,

not sure if this has happened to anyone but I have 2 droplets one works the other is doing something strange.

When I go on my browser and type www.mydomain.com the browser is pointed to var/www/ But when I type in mydomain.com my browser shows the site which sits in var/www/mydomain.com/

in the folder is a Wordpress run site.

I have these DNS settings:

www CNAME @

  • CNAME @

I also have the virtual domains …/apache2/sites-available/mydomain.com

ServerAdmin webmaster@localhost ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /var/www/mydomain.com/ …

I just can’t work out where the problem lies, does anyone have any ideas?

Thanks

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.