tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Joyce" <>
Subject RE: Apache Tomcat and Context help
Date Wed, 31 Dec 2003 21:37:40 GMT
Hi,  give this untested rule a shot.  It _should_ work.

RewriteRule   ^/tomcat/manager/(.*)$ /manager/$1 [P]


>>> 12/31/03 03:04PM >>>

I have played with the mod_rewrite a bit, no luck.  There is a good
possibility that I am doing something wrong.  This is a snippet of the
apache config I used.  Any feedback would be appreciated!

LoadModule rewrite_module modules/

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule   ^/tomcat/manager/* /manager [P]

BTW - I have tried many combinations of $ * $1 with no luck :-(

Douglas WF Acheson 

-----Original Message-----
From: Shapira, Yoav [] 
Sent: December 31, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Apache Tomcat and Context help

You probably already know this is easily done by modifying manager.xml to
use a different context path ("/tomcat/manager" instead of "/manager").  But
you want to do it on the Apache side.  You could use mod_rewrite to forward
/manager to /tomcat/manager or vice versa.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Douglas WF Acheson [] 
>Sent: Wednesday, December 31, 2003 1:41 PM
>Subject: Apache Tomcat and Context help
>  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12
>jk2 under Linux RH9 :-)  Everything works fine using straight mapping.
>when I want to use the manager (just playing around for now) I enter 
>http://hostname/manager/html and I am presented with the Tomcat manager 
>NOW here comes the problem, I would like to reference the Tomcat
>page as http://hostname/tomcat/manager and have the same page
>What I do not want to do is alter the webapp deployment descriptor
>file.  I would like to alias (somehow) the context, or URI, in apache
>I was thinking of something like this:
># Define the Manager proxy that comes with Tomcat 
>[uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping
>But, after frustrating attempts I cannot seem to get it correct.  I
>search the mail archives and a few people have asked similar questions,
>I have not see any replies.  Hope someone can help me ...
>Here is my simple file:
>#info=Maps the requests. Options: debug #debug=0
># Alternate file logger
>info=Scoreboard. Required for reconfiguration and status with
>info=Ajp13 forwarding over socket
>info=Status worker, displays runtime informations
>info=Display status information and checks the config file for changes.
># Define the servlet examples proxy that comes with Tomcat 
>[uri:/servlets-examples/*] info=Servlet prefix mapping
># Define the JSP examples proxy that comes with Tomcat 
>[uri:/jsp-examples/*] info=JSP prefix mapping
># Define the Administration proxy that comes with Tomcat [uri:/admin/*] 
>info=Admin prefix mapping
># Define the Manager proxy that comes with Tomcat [uri:/manager/*] 
>context=/manager info=Manager prefix mapping
>Douglas WF Acheson
>To unsubscribe, e-mail: 
>For additional commands, e-mail: 

This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.

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

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

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

View raw message