domain.com resolves, www.domain.com doesn't
DNS:
; example.com [125849]
$TTL 3600
@ IN SOA ns1.linode.com. me.example.com. (
2010101729
14400
14400
1209600
3600
)
@ NS ns1.linode.com.
@ NS ns2.linode.com.
@ NS ns3.linode.com.
@ NS ns4.linode.com.
@ NS ns5.linode.com.
@ MX 10 mail.example.com.
@ A XX.XXX.XXX.XXX
www A XX.XXX.XXX.XXX
mail A XX.XXX.XXX.XXX
/etc/apache2/ports.conf:
NameVirtualHost XX.XXX.XXX.XXX:80
Listen 80
/etc/hosts:
127.0.0.1 localhost.localdomain localhost hostname
XX.XXX.XXX.XXX hostname
/etc/apache2/sites-available/default:
<virtualhost xx.xxx.xxx.xxx:80="">ServerAdmin me@example.com
DocumentRoot /var/www
<directory>Options FollowSymLinks
AllowOverride None</directory>
<directory var="" www="">Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all</directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<directory "="" usr="" lib="" cgi-bin"="">AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all</directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<directory "="" usr="" share="" doc="">Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128</directory></virtualhost>
/etc/apache2/sites-available/example.com:
>
ServerName
www.example.com ServerAlias example.com
ServerAlias
www.example.com DocumentRoot /srv/www/example.com/public_html/
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined
The url in question is
I followed the guide to the letter, so can anyone spot what I did wrong?
EDIT: using
XX.XXX.XXX.XXX hostname.example.com hostname
in /etc/hosts doesn't change the behavior.
2 Replies
@TheSpectre:
http://www.parkerault.com/ resolves for me. It didn't when I first clicked on the link, but upon a force-refresh it did. Maybe you could try clearing your DNS cache or the like.
Ahh, could have been openDNS or the fact that I am behind the not-so-great firewall of thailand. Thanks for the reply.