tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <>
Subject Re: Redirecting a port to a webapp
Date Tue, 24 Nov 2009 08:34:39 GMT
2009/11/24 Looijmans, Mike <>
> Because the "xxxx" is a random word, not a
> constant, nor the name of a servlet. Think wikipedia, the request might
> be for /foo or /bar or whatever, and the servlet uses that word for its
> own purposes (it will look it up in the database and return something
> interesting).
Aha!  New information - thank you!  I don't think you'd previously
mentioned that the xxxx was dynamic, not static.

I'd expect urlrewrite should be able to handle this situation - as
would writing your own Filter if you want to learn about the
technology.  Urlrewrite's manual is remarkably clear; I suspect it
would save time overall.

If you install urlrewrite, I'd expect a urlrewrite rule similar to the
following to work (note: untested!)

  <note>Redirect :666/anything to :80/myapp/anything</note>
  <condition name="port">666</condition>

That plus two connectors for the two ports should do it, I think.

- Peter

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message