I deployed a fresh ubuntu 10.04 and followed the LAMP guide in the library. I am able to access domain.com but
www.domain.com times out. Here is my configuration:
DNS:
Code:
; 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:
Code:
NameVirtualHost XX.XXX.XXX.XXX:80
Listen 80
/etc/hosts:
Code:
127.0.0.1 localhost.localdomain localhost hostname
XX.XXX.XXX.XXX hostname
/etc/apache2/sites-available/default:
Code:
<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:
Quote:
<VirtualHost XX.XXX.XXX.XXX:80>
ServerAdmin
me@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
</VirtualHost>
The url in question is
http://www.parkerault.com/I followed the guide to the letter, so can anyone spot what I did wrong?
EDIT: using
Code:
XX.XXX.XXX.XXX hostname.example.com hostname
in /etc/hosts doesn't change the behavior.