From owner-freebsd-questions Thu Jun 18 05:56:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA26265 for freebsd-questions-outgoing; Thu, 18 Jun 1998 05:56:32 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gateway.blueberry.co.uk (gateway.blueberry.co.uk [195.153.48.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA26260 for ; Thu, 18 Jun 1998 05:56:29 -0700 (PDT) (envelope-from keith@blueberry.co.uk) Received: from intranet.blueberry.co.uk (intranet.internal.blueberry.co.uk [10.0.0.2]) by gateway.blueberry.co.uk (8.8.8/8.8.8) with ESMTP id NAA04636; Thu, 18 Jun 1998 13:56:28 +0100 (BST) (envelope-from keith@blueberry.co.uk) Received: (from keith@localhost) by intranet.blueberry.co.uk (8.8.8/8.8.8) id NAA07514; Thu, 18 Jun 1998 13:58:09 +0100 (BST) (envelope-from keith) Message-ID: <19980618135809.47368@blueberry.co.uk> Date: Thu, 18 Jun 1998 13:58:09 +0100 From: Keith Jones To: Haifeng Cc: questions@FreeBSD.ORG Subject: Re: how about the apache virtual server References: <001b01bd9aa9$3a32f310$fbf260ca@jianping.lawton.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <001b01bd9aa9$3a32f310$fbf260ca@jianping.lawton.com.cn>; from Haifeng on Thu, Jun 18, 1998 at 08:07:05PM +0900 Organization: Blueberry New Media Ltd. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jun 18, 1998 at 08:07:05PM +0900, Haifeng wrote: > Hi: > I meet a stranger problem ,I install Apache 1.3.0 on my freebsd server, I run it, everything is ok ,now I want to set server virutal web server on it (I use name based virtual host),when I add the name based virual host in the http.conf, I restart the server , I found the virtual server and the origin point to same html , I don't know why, I delete the name based virtual host from the http.conf, everythinf is ok, > i attach my http.conf, This probably isn't strictly a FreeBSD-questions question, but ..... There have been some changes in the way you configure virtual hosts between 1.2.x and 1.3.0. Read the latest server documentation. I believe you need to use the 'NameVirtualHost' directive to specify explicitly which IP address to use if the box has more than one IP address. (You may need it anyway - I'm not sure.) You also may need to use the FULL host name if it's an internal website - if you're on machine 'box1.mycorp.com' trying to access 'www.mycorp.com' typing http://www/ (which worked before virtual hosts) won't work unless you set up virtual host entries for 'www' _and_ 'www.mycorp.com'. (I don't know if all of this is actually documented on the Apache site, I found out quite a bit of this through trial and error...) Keith -- v Keith Jones Systems Manager, Blueberry New Media Ltd. v | Postal Mail: 2/10 Harbour Yard, Chelsea Harbour, LONDON, UK. SW10 0XD | | Telephone: +44 (0)171 351 3313 Fax: +44 (0)171 351 2476 | ^ Email: Keith.Jones@blueberry.co.uk WWW: http://www.blueberry.co.uk/ ^ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message