Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 15265 invoked by uid 500); 18 Jun 2001 10:05:22 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15249 invoked from network); 18 Jun 2001 10:05:18 -0000 Received: from postfix1-2.free.fr (213.228.0.130) by h31.sny.collab.net with SMTP; 18 Jun 2001 10:05:18 -0000 Received: from portable (nas-cbv-4-25-151.dial.proxad.net [213.228.25.151]) by postfix1-2.free.fr (Postfix) with SMTP id 4CBD91028E5 for ; Mon, 18 Jun 2001 12:05:26 +0200 (CEST) Message-ID: <001501c0f7de$27c50e80$9719e4d5@siege.gilem.com> From: "Carlos Ferreira" To: Subject: url redirection and tomcat Date: Mon, 18 Jun 2001 12:05:07 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01C0F7EE.EA953CE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C0F7EE.EA953CE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i'm looking for information on url redirection and it's effects on = tomcat: i'm using Apache 1.3.20 / PHP 4.0.5 / Tomcat 3.2.1 on WinMe what i want to do is to split an url like = http://www.myhost.com/product/XXX/yyyy.jsp be split up into = http://www.myhost.com/product/yyyy.jsp; XXXX being transmitted as an = argument. The rewrite rules i've used in apache are as follows: RewriteEngine on RewriteRule ^/product/([^/]+)/(.*) /product/$2?param1=3D$1 [QSA] RewriteRule ^(.+) - [PT] Alias /product "c:/Apache/tomcat/webapps/product" In Tomcat's server.xml i've added: =20 When i try to call the page http://www.myhost.com/product/XXX/yyyy.jsp = Tomcat says there is an error: can't find page /product/XXX/yyyy.jsp ( = seems doesn't Apache doesn't request the correct/rewirten page name or = Tomcat doesn't correctly understand the request... :( ; i've tried to = call the page /product/yyyy.jsp without the rewriting rules which works = fine; i've also used PHP pages with the rewriting rule which worked. = Only have problems with servlets and jsp pages. If you have any ideas... Are there any replacements for SimpleMapper1??? thxs in adavance for your help Regards Carlos Ferreira ps sorry for the bad english :( ------=_NextPart_000_0012_01C0F7EE.EA953CE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
 
i'm looking for information on url = redirection and=20 it's effects on tomcat:
 
i'm using Apache 1.3.20 / PHP 4.0.5 / = Tomcat 3.2.1=20 on WinMe
 
what i want to do is to split an url = like http://www.myhost.com= /product/XXX/yyyy.jsp=20 be split up into http://www.myhost.com/pro= duct/yyyy.jsp;=20 XXXX being transmitted as an argument.
 
The rewrite rules i've used in apache = are as=20 follows:
 
RewriteEngine on
RewriteRule ^/product/([^/]+)/(.*)   =20 /product/$2?param1=3D$1  [QSA]
RewriteRule   = ^(.+)  - =20 [PT]
Alias /product=20 "c:/Apache/tomcat/webapps/product"
In Tomcat's server.xml i've = added:
 
       =20 <Context path=3D"/product"=20
           &nb= sp;    =20 docBase=3D"webapps/product"=20
           &nb= sp;    =20 crossContext=3D"false"
        = ;        =20 debug=3D"0"=20
           &nb= sp;    =20 reloadable=3D"true" >
       =20 </Context>
When i try to call the page http://www.myhost.com= /product/XXX/yyyy.jsp=20 Tomcat says there is an error: can't find page /product/XXX/yyyy.jsp ( = seems=20 doesn't Apache doesn't request the correct/rewirten page name or Tomcat = doesn't=20 correctly understand the request... :( ; i've tried to call the page=20 /product/yyyy.jsp without the rewriting rules which works fine; i've = also used=20 PHP pages with the rewriting rule which worked. Only have problems with = servlets=20 and jsp pages.
 
If you have any ideas... Are there any = replacements=20 for SimpleMapper1???
 
 
thxs in adavance for your = help
 
 
Regards
 
 
Carlos Ferreira
 
ps sorry for the bad english = :(
 
 
 
------=_NextPart_000_0012_01C0F7EE.EA953CE0--