LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-19-2005, 05:15 PM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Apache Virtual Host problem


Hi all,

I have a webserver with a single IP address that I run multiple sites on using name based virtual hosting.

I've recently added another host, but for some reason it's going to the default apache test page instead of the domain.

The section from my httpd.conf is:

Code:
 <VirtualHost *:80>
         php_admin_flag safe_mode Off
         ServerAdmin chris@chrisquigley.com
         Servername chrisquigley.com
         ServerAlias chrisquigley.com *.chrisquigley.com
         DocumentRoot /home/httpd/vhosts/chrisquigley.com/httpdocs
 </VirtualHost>
What's odd, is that the other sites I run in the same fashion work just fine. Here's a sample syntax:

Code:
 <VirtualHost *:80>
         php_admin_value open_basedir none
         ServerAdmin admin@club3g.com
         ServerName club3g.com
         ServerAlias club3g.com *.club3g.com
         DocumentRoot /home/httpd/vhosts/club3g.com/httpdocs/
 </VirtualHost>
Is there anything else I need to do to get this new site working? I'm thinking I must have missed a step somewhere, but I can't for the life of me figure it out.

Thanks!
 
Old 03-19-2005, 06:28 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
And you restarted apache after making the changes?

And your sure there are actual html or web docs in the new hosts directory? I think by default if there is no index page, it will display the default apache page when using Redhat.
 
Old 03-19-2005, 06:33 PM   #3
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Aye, I've even rebooted the server just to be thorough.

There are actual docs in there - it's just not looking in the right folder. It's pulling from /var/www/html (the default apache site) instead of "realizing" that it's a virtual host.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Virtual Host Problem eckertc1 Linux - Newbie 11 03-23-2005 03:31 PM
Apache virtual host problem Adrohak Linux - Software 3 07-18-2004 04:17 PM
Apache 2.0 Virtual Host Problem frankd99 Linux - Software 3 02-16-2004 12:23 PM
Apache Virtual Host Problem clanx Linux - Software 3 01-07-2004 01:36 AM
Virtual Host Problem using Apache ataber Linux - Newbie 2 01-27-2003 12:32 PM


All times are GMT -5. The time now is 06:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration