Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3447 invoked from network); 9 Aug 2006 15:31:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 15:31:12 -0000 Received: (qmail 87431 invoked by uid 500); 9 Aug 2006 15:31:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87380 invoked by uid 500); 9 Aug 2006 15:31:01 -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 87341 invoked by uid 99); 9 Aug 2006 15:31:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:31:01 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 08:30:59 -0700 Received: by wx-out-0506.google.com with SMTP id s8so178057wxc for ; Wed, 09 Aug 2006 08:30:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=L7lZG7sdLAhAkKhQcLTFVNIf89ALK3/1+8w2zula3eWlFE86jieol7Jqe/BcaRfp3EZUoB2OyGEe6oOA0731msT6Wcq2RIE/pYI7e6awQvmfhOLXOaqb/r7E6GU7/ZsdMJEbfjygreYNWsnqAaAKLOn/d2YCGB5zVAT8SERZ+Oo= Received: by 10.78.147.3 with SMTP id u3mr417290hud; Wed, 09 Aug 2006 08:30:38 -0700 (PDT) Received: by 10.78.142.9 with HTTP; Wed, 9 Aug 2006 08:30:37 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2006 11:30:37 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 8cdfb66c28cf6bb9 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] grab header to redirect X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/9/06, Declerck Michael-W30479 wrote: > Hello, > Is there a way to grab a header/DNS name using Apache 2.2? > A little background: > I have a primary DNS name and a secondary DNS name that maps to the same > IP address. > Right now, my Apache 2.2 configuration redirects the client directly to > the index.pl page using the directives: > > DirectoryIndex index.pl > > when the DNS routes the client to my server. > > The secondary DNS name will also route to the same IP, thus serving > index.pl for the second DNS name as well, which is not what I want to > do. > I have been informed that the secondary DNS name will not change in the > browser when it routes to the server. > > Is there a way to grab this DNS name (would this be found as a header?) > and redirect the client based on what that name is? > I have a little bit of experience with mod_rewrite, but that experience > is nominal at best. Sounds like you are looking for: http://httpd.apache.org/docs/1.3/misc/FAQ.html#canonical-hostnames Joshua. --------------------------------------------------------------------- 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