Virtual host not working

Discussion in 'Apache' started by yallerhoss, Sep 4, 2009.

  1. #1
    I am using a new install of XAMPP on Win XP Pro. IIs disabled. Apache functions fine except I have not been able to get Virtual host to work. My domain is www.twomules.com and I want a virtual host for our church using something like http://church.twomules.com or http://twomules.church.com. Not http://twomules.com/Church. Wildcards are enable for the domain. So info.twomules, anything.twomules.com all work, but all goto the Twomules.com index.html.
    The site is located in "C:/sites/www"; Document root
    and I have this......
    </Directory>

    <Directory "c:/sites/www">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    ==========; Virtualhost setup

    NameVirtualHost 216.171.251.2:80

    <VirtualHost 216.171.251.2:80>
    ServerAdmin postmaster@216.171.251.2
    DocumentRoot "C:/sites/www"
    ServerName church.twomules.com
    ServerAlias www.church.twomules.com
    ##ErrorLog "logs/dummy-host.localhost-error.log"
    ##CustomLog "logs/dummy-host.localhost-access.log" combined
    </VirtualHost>

    What am I doing wrong? I have researched this for two days and it looks good to me. I stop and restart Apache.

    Checking the error log, it is full of this....
    HTTP_NOT_FOUND.html.var does exist.
    C:/xampp/htdocs/TEADevInfo does not exist that I can find and I have no idea what it is.
    A favicon does exist in the www/church directory.

    Can anyone please help? This is a freebee job for me but it is important.:)
     
    yallerhoss, Sep 4, 2009 IP