Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18C207EC4 for ; Tue, 9 Aug 2011 08:31:03 +0000 (UTC) Received: (qmail 24426 invoked by uid 500); 9 Aug 2011 08:30:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23878 invoked by uid 500); 9 Aug 2011 08:30:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23865 invoked by uid 99); 9 Aug 2011 08:30:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 08:30:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pid@pidster.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 08:30:22 +0000 Received: by wwe32 with SMTP id 32so4952082wwe.0 for ; Tue, 09 Aug 2011 01:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:openpgp :content-type:content-transfer-encoding; bh=cK4v8E1ydHKwzyjPE6ZXDjFPBrwl85DqJltpcGvXWuY=; b=edup279JnyL2iYSb0qLlwLbaLdYDnxzOgAJiPD+nUOr5KaaHIkehohoxOVLeHVjnl3 82Dk2VXohc1yI5rC24MUnh0oUZfKilAnPiOdbHKqGfpl4lAgbCou+OChusSDNi7Mmoik WG7+mH1iIdl5eaej+Xlg0waXykg8R+WYKSvA0= Received: by 10.227.58.206 with SMTP id i14mr2456442wbh.0.1312878602476; Tue, 09 Aug 2011 01:30:02 -0700 (PDT) Received: from Asura.local (cpc10-lewi14-2-0-cust355.2-4.cable.virginmedia.com [82.4.249.100]) by mx.google.com with ESMTPS id ff6sm5120304wbb.49.2011.08.09.01.30.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Aug 2011 01:30:01 -0700 (PDT) Message-ID: <4E40F00A.2000807@pidster.com> Date: Tue, 09 Aug 2011 09:30:02 +0100 From: Pid Organization: Pidster Inc User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: URL rewrite References: In-Reply-To: X-Enigmail-Version: 1.2 OpenPGP: id=62590808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 08/08/2011 20:36, Mohit Anchlia wrote: > I need to re-write URL using some Http Headers. Can I use any headers? > Or only the one listed here? > > http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html > > Is HTTP_HOST always set? I printed headers of my servlet and this is > what I see. I used getHeaders and iterate over it: Is this a Tomcat or an HTTPD question? p > I need to use host as in below log. > ------ > > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName accept > Value image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/xaml+xml, application/vnd.ms-xpsdocument, > application/x-ms-xbap, application/x-ms-application, > application/x-shockwave-flash, application/vnd.ms-excel, > application/vnd.ms-powerpoint, application/msword, */* > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName > accept-language Value en-us > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName > accept-encoding Value gzip, deflate > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName > user-agent Value Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; > SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; > .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; > MS-RTC LM 8; InfoPath.2) > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName host > Value sdgl04l3v4679.abc.net:8080 > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - headerName > connection Value Keep-Alive > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - Method GET > 12:33:11,114 INFO [STDOUT] INFO RequestResponse - Length of byte array null > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "GET / HTTP/1.1[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "connection: Keep-Alive[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "host: > sdgl04l3v4679.abc.net:8080[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "accept-language: en-us[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "accept: image/gif, > image/x-xbitmap, image/jpeg, image/pjpeg, application/xaml+xml, > application/vnd.ms-xpsdocument, application/x-ms-xbap, > application/x-ms-application, application/x-shockwave-flash, > application/vnd.ms-excel, application/vnd.ms-powerpoint, > application/msword, */*[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "user-agent: Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET > CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR > 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.2)[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "accept-encoding: gzip, > deflate[\r][\n]" > 12:33:11,567 INFO [STDOUT] DEBUG wire - >> "[\r][\n]" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org