Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 20th, 2004, 01:56 AM
Registered User
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proxy re-writing servlet query uri


Using IIS 5, Tomcat 4.1.24 and JK2 as connector:

Have servlets registered in workers2.properties as, EG,

info=My servlet

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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
list unparsed-entity-uri() bonekrusher XSLT 6 April 28th, 2008 10: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 06:40 AM
Checking regex with replace and URI test rjonk XSLT 1 July 28th, 2006 05:19 PM
Referrer and Uri druid2112 General .NET 1 April 20th, 2004 12:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.