Weird issue with default virtual server?

Discussion in 'Apache' started by jongleur, Nov 20, 2006.

  1. #1
    Ok, I am setting up a new server with Apache 2.2.2. I have only used 1.x before.

    I have the following settings:

    ServerRoot "/usr/local"

    Default server for all requests
    DocumentRoot "/usr/local/www/apache22/data"

    Virtual server for my domain:
    DocumentRoot "/usr/local/www/apache22/data"

    There is an index.html in the DocumentRoot (the default apache one). Yet for some reason, whenever I go to my domain (using the domain name or the IP address), it serves out a page from a different path:

    /usr/local/www/athena/forum

    Where else could it be grabbing that setting?

    Thanks in advance,
    Chris
     
    jongleur, Nov 20, 2006 IP
  2. michaelp

    michaelp Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Chris,

    I'm new to this server admin stuff myself, but check out /etc/httpd/conf/httpd.conf and look for a <VirtualHost> block (probably near the end of that file. There should be a directive called "DocumentRoot." Take a look at which folder that's pointing to.

    Example:

    <VirtualHost 123.456.789.012>
    ServerName www.mydomain.com
    DocumentRoot /var/www/html
    </VirtualHost>

    I hope this helps,
    Michael
     
    michaelp, Nov 22, 2006 IP