Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Oct 16, 2010 4:56 pm 
Offline
Newbie

Joined: Sat Oct 16, 2010 4:26 pm
Posts: 3
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?


Top
   
PostPosted: Sun Oct 17, 2010 1:31 am 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
marknewman wrote:
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 http://www.headsupanalytics.com/joe.html I get content.

Also, headsupanalytics.com redirects to www.headsupanalytics.com

--
Travis


Top
   
 Post subject:
PostPosted: Sun Oct 17, 2010 1:40 pm 
Offline
Newbie

Joined: Sat Oct 16, 2010 4:26 pm
Posts: 3
Thanks for taking a look.

There is a separate hosted web site associated with www.headsupanalytics.com which is a placeholder for a general information site. There is another A record pointing there. If you look, you can see that the other server reports back that there is no joe.html at that site.

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.


Top
   
PostPosted: Tue Oct 19, 2010 5:15 pm 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
marknewman wrote:
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


Top
   
 Post subject:
PostPosted: Tue Oct 19, 2010 5:22 pm 
Offline
Newbie

Joined: Sat Oct 16, 2010 4:26 pm
Posts: 3
Actually, generous help from Stan in Support has allowed me to work around the problem by disabling the default host.

I am still looking for the underlying mistake, and will post the solution if and when I track it down.

Thanks,

Mark


Top
   
 Post subject: Disabled default?
PostPosted: Wed Oct 20, 2010 8:13 pm 
Offline
Newbie

Joined: Wed Oct 20, 2010 8:08 pm
Posts: 4
Website: http://www.goinflame.com
WLM: reliantj03@hotmail.com
Yahoo Messenger: sumaxjr
Location: Texarkana, Texas
Could you post this process? Thanks!

_________________
- Josh Rogers


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group