LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Virtual Host problem (https://www.linuxquestions.org/questions/linux-software-2/apache-virtual-host-problem-303676/)

Seventh 03-19-2005 05:15 PM

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!

trickykid 03-19-2005 06:28 PM

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.

Seventh 03-19-2005 06:33 PM

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.


All times are GMT -5. The time now is 08:31 AM.