tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard Watson" <howa...@esgw.org>
Subject Re: Apache Tomcat and Context help
Date Wed, 31 Dec 2003 21:52:59 GMT
In my environment I would try something like this:

Apache.conf
---------------
##Alias should match <Context> in server.xml
Alias  /tomcat "full directory path to manager/html"
<Directory full directory path to manager/html>
      Options anyOptions
      DirectoryIndex probably index.jsp
      Order deny,allow
      Allow from all
</Directory>

## Mount the JSPs
## Mount servlets found in Web-Inf/classes
JkMount /tomcat/*.jsp ajp13
JkMount /tomcat/servlet/* ajp13

I would probably disable the standalone service.

>>> dwfa@dwfa.ca 12/31/03 11:41AM >>>
Hello,

  I have successfully integrated Apache v2.0.40 with tomcat v5.0.12 using
jk2 under Linux RH9 :-)  Everything works fine using straight mapping.  So,
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 page
:)

NOW here comes the problem, I would like to reference the Tomcat manager
page as http://hostname/tomcat/manager and have the same page presented.
What I do not want to do is alter the webapp deployment descriptor (web.xml)
file.  I would like to alias (somehow) the context, or URI, in apache only.
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 have
search the mail archives and a few people have asked similar questions, but
I have not see any replies.  Hope someone can help me ...

Here is my simple workers2.properties file:

[logger]
level=DEBUG

#[uriMap:]
#info=Maps the requests. Options: debug
#debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/home/www/runtime/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/home/www/runtime/run/jk2.shm
size=1000000
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=5
tomcatId=localhost:8009

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

# 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


Regards,
Douglas WF Acheson
dwfa@dwfa.ca 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message