basic problem with Apache virtual host
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
The current result is that I get the default Apache page when I hit
Here is my current configuration:
/etc/apache2/sites-available/default:
/etc/apache2/sites-available/wiki.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
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?
5 Replies
@marknewman:
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.
Are you sure you have don't have 'www' instead of 'wiki' in your configuration? Because when I go to
Also, headsupanalytics.com redirects to
–
Travis
There is a separate hosted web site associated with
If you go to
@marknewman:
If you go to
http://wiki.headsupanalytics.com , you will get the "It works" page returned to you. That is from Apache at the Linode instance.
Looks like you got it figured out, as the joe document is there now.
–
Travis
I am still looking for the underlying mistake, and will post the solution if and when I track it down.
Thanks,
Mark