I just created my first Droplet and changed my DNS to DigitalOcean. I’ve reviewed the following forum thread (https://www.digitalocean.com/community/articles/dns-tips-and-tricks), but I’m still having issues - my domain works without the www, but not with. I’ve also checked the vhosts configuration and it looks ok. (This is the same vhost configuration file I was running on a Linode server also using Fedora)
Any help is appreciated.
whois paulcutler.org shows I’m using the right DNS server, so I know it’s propogated.
Running dig shows the same thing:
; <<>> DiG 9.8.3-P1 <<>> paulcutler.org @ns1.digitalocean.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24519 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available
;; QUESTION SECTION: ;paulcutler.org. IN A
;; ANSWER SECTION: paulcutler.org. 1800 IN A 184.108.40.206
;; Query time: 47 msec ;; SERVER: 220.127.116.11#53(18.104.22.168) ;; WHEN: Fri Jul 12 07:18:25 2013 ;; MSG SIZE rcvd: 48
Droplet DNS setup: https://www.dropbox.com/s/ebgftlckbgbod6e/Screenshot 2013-07-12 07.16.59.png
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org ServerName www.paulcutler.org ServerAlias paulcutler.org *.paulcutler.org DocumentRoot /var/www/paulcutler.org/public_html/ ErrorLog /var/www/paulcutler.org/logs/error.log CustomLog /var/www/paulcutler.org/logs/access.log combined </VirtualHost>
I’ve also tried using:
<VirtualHost *:80> ServerAdmin email@example.com ServerName paulcutler.org ServerAlias www.paulcutler.org DocumentRoot /var/www/paulcutler.org/public_html/ ErrorLog /var/www/paulcutler.org/logs/error.log CustomLog /var/www/paulcutler.org/logs/access.log combined </VirtualHost>
Starting Apache with -S does not have any errors, so I don’t think it is the vhost configuration.
This thread (https://www.digitalocean.com/community/questions/xyz-com-sites-opens-properly-but-www-xyz-com-gives-error-is-it-coz-of-my-vhost-setup) makes me think DNS is not configured for www properly, but I’m not having much luck finding any answers on Google.
Any hints or tips are appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!