Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 20th, 2004, 02:56 AM
Registered User
 
Join Date: Oct 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proxy re-writing servlet query uri

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


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
list unparsed-entity-uri() bonekrusher XSLT 6 April 28th, 2008 11:52 AM
chapter 2, error uri cannot be resolved in either boylevel BOOK: Beginning JavaServer Pages 2 November 21st, 2007 12:54 PM
How do I get only the filename of the reffered URI shekhar_249 General .NET 1 August 25th, 2006 07:40 AM
Checking regex with replace and URI test rjonk XSLT 1 July 28th, 2006 06:19 PM
Referrer and Uri druid2112 General .NET 1 April 20th, 2004 01:54 PM



All times are GMT -4. The time now is 01:50 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.