I am trying to set up an Apache instance that will have only a single host, with domain wiki.headsupanalytics.com.
I have already set up an A record at GoDaddy to link the domain name with the IP address for my Linode instance.
I followed the procedures for building a LAMP stack listed in
http://library.linode.com/lamp-guides/u ... .04-lucid/.
The current result is that I get the default Apache page when I hit
http://wiki.headsupanalytics.com from my browser, but any attempt to get any other content results in a 404. For example, I put a file called joe.html in /srv/www/headsupanalytics.com/public_html. When I try to retrieve
http://wiki.headsupanalytics.com/joe.html, I get a 404. The request is logged in the log file for the default host, not for my virtual host. It shows that Apache looked for joe.html in /var/www/, which I understand is the root directory of the default host.
Here is my current configuration:
/etc/apache2/sites-available/default:
<VirtualHost XXX.XXX.XXX.XXX:80>
(all other text untouched from the installation)
/etc/apache2/sites-available/wiki.headsupanalytics.com:
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerAdmin
admin@headsupanalytics.com
ServerName wiki.headsupanalytics.com
DocumentRoot /srv/www/headsupanalytics.com/public_html
ErrorLog /srv/www/headsupanalytics.com/logs/error.log
CustomLog /srv/www/headsupanalytics.com/logs/access.log combined
</VirtualHost>
I invoked a2ensite wiki.headsupanalytics.com getting the message "Enabling site wiki.headsupanalytics.com." and restarted Apache with no errors reported at the command line.
Can you suggest how I might diagnose and fix this problem?