[NTLUG:Discuss] Virtual Host in Apache

MadHat madhat at unspecific.com
Thu Aug 26 11:05:58 CDT 1999


> Keith From wrote:
> 
> OK, here is my problem.
> I want to run multiple domains with Apache
> assigning 1 IP address per site.
> I have altered my httpd.conf file and added this:
> 
>    <VirtualHost 209.223.22.92>
>     ServerAdmin webmaster at mail.cbssolutions.com
>     DocumentRoot /files/www/testing/html
>     ServerName www.testing.com
>     ErrorLog /files/www/testing/logs/error_log
>     TransferLog /files/www/testing/logs/access_log
>     <directory "/files/www/testing/html">
>     Options Indexes Includes FollowSymLinks
>     AllowOverride None
>     order allow,deny
>     allow from all
>     </directory>
>     </VirtualHost>
> 
> 
> I also went into /etc/hosts and added the new address
> to the hosts file like this:
> 
> 209.223.22.92    www.testing.com    testsite
> 
> when I try to browse 209.223.22.92, I get a
> server not responding error.
> 
> What am i missing here, what else do i need to configure.
> 
> Thanks a million to all of you.

Do you have a line that reads:
NameVirtualHost 209.223.22.92:80
or similar? 

Also if you browse there by IP instead of name, it will show the default
site and not one of the virtual sites, it works off the head info being
sent from the browser.

-- 
MadHat




More information about the Discuss mailing list