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

Re: Virtual Hosts



I haven't really followed this discussion so this might have been said.
I have this configuration for apache:
You must set a NameVirtualHost
NameVirtualHost 204.73.64.54

<VirtualHost www.company.com>
  ServerName company.com
  ServerAlias company.com www.company.com
  DocumentRoot /var/virtual/company
  ErrorLog /var/log/apache/virtual/company/error.log
  Customlog /var/log/apache/virtual/company/transfer.log full
  Options ExecCgi
</VirtualHost>

You can get more documentation about virtual IP or named based hosting at
apache.org.
Matt

Y2KNET wrote:

> I have used the same configuration:
>
> <VirtualHost www.smallco.com>
>     ServerAdmin webmaster@mail.smallco.com
>     DocumentRoot /groups/smallco/www
>     ServerName www.smallco.com
>     ErrorLog /groups/smallco/logs/error_log
>     TransferLog /groups/smallco/logs/access_log
>     </VirtualHost>
>
> But still it loads the primary site.
>
> ----- Original Message -----
> From: Marcel Hicking <m.hicking@vianetworks.de>
> To: <debian-isp@lists.debian.org>
> Sent: Tuesday, April 03, 2001 8:44 AM
> Subject: Re: Virtual Hosts
>
> > http://httpd.apache.org/docs/vhosts/index.html
> > esp.
> > http://httpd.apache.org/docs/vhosts/ip-based.html
> >
> > basically use something like
> > <VirtualHost 10.0.0.1>
> >     ServerName www.abc.dom
> >     ServerAdmin webgirl@abc.dom
> >     DocumentRoot /www/abc
> > </VirtualHost>
> >
> > Cheers, Marcel
> >
> > Y2KNET <net@y2knet.net> 3 Apr 2001, at 8:37:
> >
> > > I have installed Debian 2.2r2 and now trying to put
> > > more IP based virtual hosts. I have used
> > > the VirtualHost directives, and gave the IP number
> > > to each site. But when I tried to look on the Virtual host
> > > site, it brings the primary site.
> > >
> > > I will appreciate, if I get information about how to setup
> > > VirtualHost on 2.2r2.
> > >
> > > Abu Umair.
> > >
> >
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> >
> >
>
> --
> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: