when i log to my domain without www it work,when with www.xxxxxx.com it doesn't ??

August 20, 2014 6.9k views

(one click wordpress)

<VirtualHost *:80>
   ServerAdmin webmaster@xxxxxxx.com
   DocumentRoot /var/www
   Servername xxxxxxxx.com
   ServerAlias www.xxxxxx.com
 </VirtualHost>

inside wordpress settings : Site Address (URL),WordPress Address (URL)
http://xxxxxxxxxx.com

1 comment
  • In the future do not substitute your domain name for a place holder. Obscurity only prevents people from helping you quickly and effectively.

7 Answers

If you had posted your domain name I could have verified that this is the case, however it sounds like you don't have a www DNS record on your domain. Add a www DNS record.

i was edit like this inside dns

A -www.drive4media.com - 104.131.52.229

Domain Name: DRIVE4MEDIA.COM
Registrar: ENOM, INC.
Whois Server: whois.enom.com
Referral URL: http://www.enom.com
Name Server: NS1.DIGITALOCEAN.COM
Name Server: NS2.DIGITALOCEAN.COM
Name Server: NS3.DIGITALOCEAN.COM
Status: ok
Updated Date: 19-aug-2014
Creation Date: 16-aug-2014
Expiration Date: 16-aug-2015

You're DNS record should just have the subdomain, not the whole domain. You can also use a CNAME:

Record Name Target
CNAME www @

Checkout: How To Set Up and Test DNS Subdomains with DigitalOcean's DNS Panel

by Assaf Gordon
Here's some documentation on how to set up and test DNS subdomains with DigitalOcean's DNS panel.
Have another answer? Share your knowledge.