[NTLUG:Discuss] Virtual Host in Apache

Keith From kfrom at cbssolutions.com
Thu Aug 26 11:21:37 CDT 1999


----- Original Message ----- 
From: MadHat <madhat at unspecific.com>
To: <discuss at ntlug.org>
Sent: Thursday, August 26, 1999 11:05 AM
Subject: Re: [NTLUG:Discuss] Virtual Host in Apache


> > 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
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
> 

No, i do not have a line that reads:

NameVirtualHost 209.223.22.92:80

Where would i insert this????
Also, i do try to browse there by IP, and that
is when i was getting the "Server not respoding" error

Thanks,
Keith





More information about the Discuss mailing list