IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 20th, 2004, 02:37 AM
dbrowne dbrowne is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 dbrowne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Proxy rewrites servlet POST query in transit

Hi,

Using IIS 5, Tomcat 4.1.24 and JK2 as connector:

Have servlets registered in workers2.properties as, EG,

[uri:/servlet/MyServlet]
info=My servlet
context=/
debug=1

For examples sake will call the server "myserver".

The redirection works fine for users accessing "myserver" directly. The successful query looks like this and is fine:

HTTP POST /servlet/MyServlet

For users going via a proxy, however, the servlet POST has been prepended with the server name in transit, so the POST is changed to:

HTTP POST http://myserver/servlet/MyServlet

Obviously this is not registered in jk2, and so we get a 405 Resource Not Allowed.

Ive tried registering the full URL but that still fails, and anyway, jk2 expects all URIs to start with a slash. So these dont work either:

[uri:*/servlet/MyServlet] or [uri:http://myserver/servlet/MyServlet]

Is there a way to prevent this modification of the query? Should it be done via config of the proxy, or somewhere in jk2/IIS/Tomcat.

Thanks alot in advance for any help.

DB.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Proxy rewrites servlet POST query in transit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway