[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 1 IP address, 4 websites to host?



Actually, it's NameVirtualHost that you want.

The relevant lines in httpd.conf are like this:

NameVirtualHost 'ip address'

<VirtualHost 'ip address'>
ServerName 'domain.name.one'
DocumentRoot /var/www/domain.one
</VirtualHost>

<VirtualHost 'ip address'>
Servername 'domain.name.two'
DocumentRoot /var/www/domain.two
</VirtualHost>

etc.

Without any of the single quotes.  I put them there to emphasise what you
need to change.

HTH

On Tue, May 09, 2000 at 03:47:20PM +0100, Dominic Blythe wrote:
> it's called VIRTUAL DOMAINS and the documentation that comes with apache
> tells you about it, also the config file, httpd.conf, has some stuff about
> it (i think).
> 
> > -----Original Message-----
> > From: Tom Warfield [mailto:twarfield@astcorp.com]
> > Sent: 09 May 2000 15:56
> > To: debian-user@lists.debian.org
> > Subject: 1 IP address, 4 websites to host?
> > 
> > 
> > Okay i have 1 IP address and want to run 4 different domains.
> > Running apache...what is this called? and can it be done?  If 
> > so, how do i
> > do it?
> > 
> > Thanks,
> > 
> > Tom W.
> > 
> > 
> > -- 
> > Unsubscribe?  mail -s unsubscribe 
> > debian-user-request@lists.debian.org < /dev/null
> > 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 

-- 
"Beware he who would deny you access to information, for in his heart 
he dreams himself your master."

Attachment: pgpIe1trJYCAn.pgp
Description: PGP signature


Reply to: