Hi all,
I am using Tomcat 3.2.1 with Apache 1.3
and I have the following problem:
I want to rewrite a path from a form like 'http://host:port/file.html'
to something like
'http://host:port/ContextServlet/MyServletName?parameter=file.html').
(Note that the program works when i use
cc:
heops.comSubject: RewritingURL with Tomcat3.2.1
/servlet-name
url-pattern
/file.html
/url-pattern
/servlet-mapping
Best regards !
- Original Message -
From: Lessault Jean-Luc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 21, 2001 11:33 AM
Subject: RewritingURL with Tomcat3.2.1
Hi all,
I am
Thanks but I already use servlet mapping.
More preciasely my question is in which file I have to put the following
instructions
LoadModule rewrite_module module/mod_rewrite.dll
IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /ContextServlet/
RewriteRule ^file.html
There is fairly good documentation of the mod_rewrite on the apache httpd
website at http://httpd.apache.org/docs/misc/rewrite
I believe you will need to have ^/file.html and not just ^file.html - the
paths that are parsed include (I think) the leading slash.
hth...
-Rob
: Rob Ewaschuk
Anyone have any problems with Apache's mod re-write
and tomcat and ssl? Our web server seems to be completely
ignoring the mod re-write rules when in ssl mode...
On Mon, 21 May 2001, Tim O'Neil wrote:
Anyone have any problems with Apache's mod re-write
and tomcat and ssl? Our web server seems to be completely
ignoring the mod re-write rules when in ssl mode...
Make sure that your rewrite rules are within the SSL virtual server block.
VirtualHost
At 10:30 AM 5/21/2001 -0700, you wrote:
Anyone have any problems with Apache's mod re-write
and tomcat and ssl? Our web server seems to be completely
ignoring the mod re-write rules when in ssl mode...
Ah... you have to put the url rewrite in the virtual
server definition for ssl... nice.