Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 01:08:35 -0500
From:      "Troy Settle" <troy@psknet.com>
To:        "Martyn Routley" <martynr@newcolo.invictanet.co.uk>
Cc:        <freebsd-isp@FreeBSD.ORG>
Subject:   RE: Apache problem
Message-ID:  <GIEHKBHPBGKJPNMBCOHFCEABCAAA.troy@psknet.com>
In-Reply-To: <Pine.BSF.4.21.0011191451320.7182-100000@veager.siteplus.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Better yet, upgrade to 1.3.14, which has some really neat support for named
virtual hosts:

	NameVirtualHost *
	<VirtualHost *>
	  ServerName domain.com
	  ServerAlias www.domain.com
	  DocumentRoot /some/path
	  OtherDirectives ....
	</VirtualHost>

I'm liking it because now I don't have to muck around with IPs at all in the
apache config.

I also like 1.3.14's new config directory support.  Instead of a config
file, you can have a directory with several files:

	0_base_config
	1_first_virtual_host
	2_second_virtual_host
	etc...


G'luck,

-Troy


** -----Original Message-----
** From: owner-freebsd-isp@FreeBSD.ORG
** [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Jim Weeks
** Sent: Sunday, November 19, 2000 2:55 PM
** To: Martyn Routley
** Cc: freebsd-isp@FreeBSD.ORG
** Subject: Re: Apache problem
**
**
** I believe constructing your entries something like this will solve your
** problem.
**
** NameVirtualHost 192.168.0.1
**
** # Virtual Hosts //////////////////////////////////////
**
** <VirtualHost 192.168.0.1>
** DocumentRoot /usr/local/www/data/legado
** ServerName legado.ltd.uk
** ServerAdmin hostmaster@legado.ltd.uk
** ServerAlias www.legado.ltd.uk
** ScriptAlias /cgi-bin/ /usr/local/www/data/cgi-bin/
** </VirtualHost>
**
** <VirtualHost 192.168.0.1>
** DocumentRoot /usr/local/www/data/marchesi
** ServerName marchesi.co.uk
** ServerAdmin hostmaster@marchesi.co.uk
** ServerAlias www.marchesi.co.uk
** ScriptAlias /cgi-bin/ /usr/local/www/data/aoglb/cgi-bin/
** ErrorLog /usr/log/marchesi.co.uk-error_log
** TransferLog /usr/log/marchesi.co.uk-access_log
** </VirtualHost>
**
** --
** Jim Weeks
**
**
** On Sun, 19 Nov 2000, Martyn Routley wrote:
**
** > Can anyone help with this problem?
** >
** >
** > I have Apache 1.3.12 running on one server with a couple of name based
** > virtual hosts.
** >
** > I have another server running 1.2.x with a lot of name based
** virtual hosts.
** >
** > I have extracted a chunk of the 1.2.x httpd.conf and added it
** to the 1.3.12
** > httpd.conf.
** >
** > When I restart 1.3.12, all I get is this.
** > [Sun Nov 19 18:40:29 2000] [warn] VirtualHost legado.ltd.uk:80
** overlaps with
** > VirtualHost www.erc.elec.co.uk:80, the first has precedence,
** perhaps you
** > need a NameVirtualHost directive
** > [Sun Nov 19 18:40:29 2000] [warn] VirtualHost
** marchesi.co.uk:80 overlaps
** > with VirtualHost legado.ltd.uk:80, the first has precedence,
** perhaps you
** > need a NameVirtualHost directive
** > [Sun Nov 19 18:40:29 2000] [warn] VirtualHost completebreaks.co.uk:80
** > overlaps with VirtualHost marchesi.co.uk:80, the first has precedence,
** > perhaps you need a NameVirtualHost directive
** > [
** >
** > Yes I do have the appropriate NameVirtualHost directive
** >
** >
** > Martyn Routley
** > -----------------------------------------------------
** > InvictaNet - The Internet in Plain English, Guaranteed
** > http://www.invictanet.co.uk
** > mailto:info@invictanet.co.uk
** > phone: 0870 7402252
** > fax: +44 (0)1233 334001
** > ------------------------------------------------------
** >
** >
** >
** > To Unsubscribe: send mail to majordomo@FreeBSD.org
** > with "unsubscribe freebsd-isp" in the body of the message
** >
**
**
**
** To Unsubscribe: send mail to majordomo@FreeBSD.org
** with "unsubscribe freebsd-isp" in the body of the message
**
**



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GIEHKBHPBGKJPNMBCOHFCEABCAAA.troy>