httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Harrison <rha...@beeslender.com>
Subject [users@httpd] rewrite problem w/ Apache-tomcat
Date Mon, 09 Dec 2002 01:16:07 GMT
We are using Apache 1.3xx and Tomcat 3.2.3 with Redhat 7.2 OS and uptodate 
patches.

http.conf is set up as follows:
Include <path-to-file>/mod_jk.conf-auto
<VirtualHost xxx:80>
DocumentRoot xxx
ServerName xxx
RewriteEngine on
RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^(/.*;jsessionid=.*)$ /$1 [T=jserv-servlet,NE]
RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 9
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>

With cookies turned off, the rewrite_log looks like this.
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (2) init rewrite engine 
with requested uri /feedback.jsp;jsessionid=zhk0wgwfl1:NOSSL
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (3) applying pattern 
'^/(.*):SSL$' to uri '/feedback.jsp;jsessionid=zhk0wgwfl1:NOSSL'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (3) applying pattern 
'^/(.*):NOSSL$' to uri '/feedback.jsp;jsessionid=zhk0wgwfl1:NOSSL'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (2) rewrite 
/feedback.jsp;jsessionid=zhk0wgwfl1:NOSSL -> 
http://192.168.1.200/feedback.jsp;jsessionid=zhk0wgwfl1
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (2) explicitly forcing 
redirect with http://192.168.1.200/feedback.jsp;jsessionid=zhk0wgwfl1
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (1) escaping 
http://192.168.1.200/feedback.jsp;jsessionid=zhk0wgwfl1 for redirect
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#814f8c0][rid#8285aa8/initial] (1) redirect to 
http://192.168.1.200/feedback.jsp%3bjsessionid=zhk0wgwfl1 [REDIRECT/302]
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (2) init rewrite engine 
with requested uri /feedback.jsp;jsessionid=zhk0wgwfl1
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (3) applying pattern 
'^/(.*):SSL$' to uri '/feedback.jsp;jsessionid=zhk0wgwfl1'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (3) applying pattern 
'^/(.*):NOSSL$' to uri '/feedback.jsp;jsessionid=zhk0wgwfl1'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (3) applying pattern 
'^(/.*;jsessionid=.*)$' to uri '/feedback.jsp;jsessionid=zhk0wgwfl1'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (2) rewrite 
/feedback.jsp;jsessionid=zhk0wgwfl1 -> //feedback.jsp;jsessionid=zhk0wgwfl1
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (2) remember 
//feedback.jsp;jsessionid=zhk0wgwfl1 to have MIME-type 'jserv-servlet'
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (2) local path result: 
//feedback.jsp;jsessionid=zhk0wgwfl1
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (1) go-ahead with 
//feedback.jsp;jsessionid=zhk0wgwfl1 [OK]
192.168.1.150 - - [08/Dec/2002:19:31:26 -0500] 
[192.168.1.200/sid#8159998][rid#8270e00/initial] (1) force filename 
//feedback.jsp;jsessionid=zhk0wgwfl1 to have MIME-type 'jserv-servlet'

And the browser looks like this:
Not Found (404)

Original request: /MyPage.jsp%3bjsessionid=f1oyodxll1
Not found request: /MyPage.jsp%3bjsessionid=f1oyodxll1

Could someone please tell me what I'm doing wrong?  If this is not an 
Apache problem, I apoligize. Thanks.


"You cannot reason a person out of a position he did not reason himself 
into in the first place"-- Jonathan Swift

Robert W. Harrison, III, M.D.
585/271-6878 (Office)
585/473-5643 (FAX)
585/752-1365 (Cellular)
yazoooKidd (AIM)
Internet-based Weight Management at http://www.beeslender.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message