Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 46819 invoked from network); 30 Dec 2007 23:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2007 23:14:29 -0000 Received: (qmail 89797 invoked by uid 500); 30 Dec 2007 23:14:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89781 invoked by uid 500); 30 Dec 2007 23:14:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89770 invoked by uid 99); 30 Dec 2007 23:14:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Dec 2007 15:14:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of npeelman@cfl.rr.com designates 75.180.132.121 as permitted sender) Received: from [75.180.132.121] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.121) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Dec 2007 23:13:42 +0000 Received: from [192.168.1.5] (really [24.175.203.43]) by cdptpa-omta05.mail.rr.com with ESMTP id <20071230231345.NZHG26118.cdptpa-omta05.mail.rr.com@[192.168.1.5]> for ; Sun, 30 Dec 2007 23:13:45 +0000 Message-ID: <47782628.4090107@cfl.rr.com> Date: Sun, 30 Dec 2007 18:13:44 -0500 From: Norman Peelman User-Agent: Thunderbird 1.5.0.14pre (X11/20071023) MIME-Version: 1.0 To: users@httpd.apache.org References: <20071230155312.GA3403@spookie1> <20071230171802.GB3403@spookie1> In-Reply-To: <20071230171802.GB3403@spookie1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Virtual Hosts Joe wrote: > On 17:52 Sun 30 Dec , Victor Trac wrote: > >> On Dec 30, 2007 4:53 PM, Joe wrote: >> >>> I used to be able to do this in 1.3 but now using 2.2 I can't get it to >>> work. Running on a Debian server in /etc/apache2/apache2.conf I have >>> (where nnn.nnn.nnn.nnn = my IP address) >>> >>> >> Someone else can correct me if I'm wrong, but I believe that since >> you're listening to a particular IP and port, you'll need to change >> your NameVirtualHost and directives to match: >> >> NameVirtualHost nnn.nnn.nnn.nnn:80 >> >> ... >> >> >> /var/www/chris is always pulled up because it comes first >> alphabetically, and any request that goes to nnn.nnn.nnn.nnn:80 >> (because of your Listen directive) is served by the first matching >> host. >> >> More information can be found here: >> http://httpd.apache.org/docs/2.0/vhosts/examples.html >> >> Hope that helps. >> >> > Trying that and I cannot connect at all. Get the following error > > Address already in use: make_sock: could not bind to address > nnn.nnn.nnn.nnn:80 > > Listen 80 NameVirtualHost * ServerName yoursite.com ServerAlias www.yoursite.com ... ServerName yoursite2.com ServerAlias www.yoursite2.com ... -- Norman Registered Linux user #461062 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org