Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 21357 invoked from network); 4 Jan 2008 00:58:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2008 00:58:14 -0000 Received: (qmail 72207 invoked by uid 500); 4 Jan 2008 00:57:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 72187 invoked by uid 500); 4 Jan 2008 00:57:52 -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 72176 invoked by uid 99); 4 Jan 2008 00:57:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 16:57:52 -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; Fri, 04 Jan 2008 00:57:26 +0000 Received: from [192.168.1.5] (really [24.175.203.43]) by cdptpa-omta01.mail.rr.com with ESMTP id <20080104005730.OQDQ16228.cdptpa-omta01.mail.rr.com@[192.168.1.5]> for ; Fri, 4 Jan 2008 00:57:30 +0000 Message-ID: <477D8479.9010401@cfl.rr.com> Date: Thu, 03 Jan 2008 19:57:29 -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> <47782628.4090107@cfl.rr.com> In-Reply-To: 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 Frank M. Ramaekers wrote: > I was having the same problem, only mine are different hosts not > domains. How would you do them? > > (e.g. abc.domain.com def.domain.com and xyz.domain.com) > > TIA, > > Frank M. Ramaekers Jr. > Systems Programmer MCP, MCP+I, MCSE & RHCE > American Income Life Insurance Co. Phone: (254)761-6649 > 1200 Wooded Acres Dr. Fax: (254)741-5777 > Waco, Texas 76701 > > > -----Original Message----- > From: Norman Peelman [mailto:npeelman@cfl.rr.com] > Sent: Sunday, December 30, 2007 5:14 PM > To: users@httpd.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 > ... > > > If I understand your question correctly, you can place multiple entries on one ServerAlias line like so: ServerName domain.com ServerAlias abc.domain.com def.domain.com xyz.domain.com will all resolve to the same vh. else, it's in the name 'VirtualHost' -- set them up the same. -- 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