From owner-freebsd-doc@FreeBSD.ORG Fri Jul 23 11:50:26 2004 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA3C316A4D3 for ; Fri, 23 Jul 2004 11:50:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB60143D48 for ; Fri, 23 Jul 2004 11:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6NBoQ9f093464 for ; Fri, 23 Jul 2004 11:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6NBoQ1x093463; Fri, 23 Jul 2004 11:50:26 GMT (envelope-from gnats) Resent-Date: Fri, 23 Jul 2004 11:50:26 GMT Resent-Message-Id: <200407231150.i6NBoQ1x093463@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brad Davis Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C971316A4CE for ; Fri, 23 Jul 2004 11:43:51 +0000 (GMT) Received: from valentine.liquidneon.com (valentine.liquidneon.com [216.38.206.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BEC243D1D for ; Fri, 23 Jul 2004 11:43:51 +0000 (GMT) (envelope-from bdavis@house.so14k.com) Received: from localhost (localhost [127.0.0.1]) by valentine.liquidneon.com (Postfix) with ESMTP id 0EBA5FD for ; Fri, 23 Jul 2004 05:43:50 -0600 (MDT) Received: from valentine.liquidneon.com ([216.38.206.180]) by localhost (valentine.liquidneon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21540-09 for ; Fri, 23 Jul 2004 05:43:49 -0600 (MDT) Received: from mccaffrey.house.so14k.com (c-24-8-51-173.client.comcast.net [24.8.51.173]) by valentine.liquidneon.com (Postfix) with ESMTP id 992E14F for ; Fri, 23 Jul 2004 05:43:49 -0600 (MDT) Received: by mccaffrey.house.so14k.com (Postfix, from userid 1001) id 49389A89; Fri, 23 Jul 2004 05:43:49 -0600 (MDT) Message-Id: <20040723114349.49389A89@mccaffrey.house.so14k.com> Date: Fri, 23 Jul 2004 05:43:49 -0600 (MDT) From: Brad Davis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/69478: Add bit about Apache VirtualHosts X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brad Davis List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2004 11:50:26 -0000 >Number: 69478 >Category: docs >Synopsis: Add bit about Apache VirtualHosts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 23 11:50:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Brad Davis >Release: FreeBSD 4.10-STABLE i386 >Organization: >Environment: System: FreeBSD mccaffrey.house.so14k.com 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri May 28 08:02:41 MDT 2004 root@mccaffrey.house.so14k.com:/usr/obj/usr/src/sys/MCCAFFREY i386 >Description: Add bit about VirtualHosts to the Apache section >How-To-Repeat: >Fix: --- doc-ori/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml Fri Jul 23 01:22:03 2004 +++ doc/en_US.ISO8859-1/books/handbook/network-servers/chapter.sgml Fri Jul 23 05:40:43 2004 @@ -4161,6 +4161,40 @@ + Virtual Hosting + + Apache supports two different types of Virtual Hosting. The first method is + Name-based Virtual Hosting. Name-based virtual hosting uses the clients HTTP/1.1 + headers to figure out the hostname. This allows many different domains to share + the same IP address. + + To setup Apache to use Name-based Virtual Hosting add an entry like the following + to your httpd.conf. + + NameVirtualHost * + + If you had the domains www.domain.tld and www.someotherdomain.tld you would add + entries that look like the following: + + <VirtualHost *> +ServerName www.domain.tld +DocumentRoot /www/domain.tld +<VirtualHost> + +<VirtualHost *> +ServerName www.someotherdomain.tld +DocumentRoot /www/someotherdomain.tld +</VirtualHost> + + Replace the addresses with the addresses you want to use and the path to the + documents with what you are using. + + For more info consult the official Apache documentation at: + + + + + Apache Modules Apache >Release-Note: >Audit-Trail: >Unformatted: