You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sa...@twinix.com on 2007/08/26 21:11:36 UTC
Re: [mod_jk] problem serving URIs with 'special characters'
URLEncoding doesn't take care of this problem?
In Response To:
Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)
Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.
Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.
My questions are:
1. Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2. How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)
I am really out of my element here so I would appreciate your help
greatly.
Thanks in advance
Related forum topic I found:
http://www.nabble.com/Image-problem-tf3629476.html#a10141944
http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432
The configuration I thought would work but had the image loading
problem:
JkMount /* ajp13
JkStripSession On
JkOptions +ForwardURICompatUnparsed
#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L]
Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
noway@spam.com
www.allot.com <http://www.allot.com/>
Sent from Techienuggets Netbeans IDE Forum: http://www.techienuggets.com/Detail?tx=11219
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: [mod_jk] problem serving URIs with 'special characters'
Posted by Guy Katz <gk...@allot.com>.
I am not sure what you are reffering to by saying URLencoding but:
the default jkoption value in the mod_jk in the version i have processes the URI in a way that changes its value. that is why i changed it to +ForwardURICompatUnparsed but than i encountered the image loading problem.
i would be happy to hear ideas but please be more specific.
thanks.
________________________________
From: samk@twinix.com [mailto:samk@twinix.com]
Sent: Sun 8/26/2007 10:11 PM
To: users@tomcat.apache.org
Subject: Re: [mod_jk] problem serving URIs with 'special characters'
URLEncoding doesn't take care of this problem?
In Response To:
Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)
Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.
Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.
My questions are:
1. Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2. How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)
I am really out of my element here so I would appreciate your help
greatly.
Thanks in advance
Related forum topic I found:
http://www.nabble.com/Image-problem-tf3629476.html#a10141944
http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432
The configuration I thought would work but had the image loading
problem:
JkMount /* ajp13
JkStripSession On
JkOptions +ForwardURICompatUnparsed
#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L]
Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
noway@spam.com
www.allot.com <http://www.allot.com/>
Sent from Techienuggets Netbeans IDE Forum: http://www.techienuggets.com/Detail?tx=11219
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org