I am running Apache2.2 and Tomcat7.0 on Windows.
How do I setup JkMount to allow access to any deployed webapp on Tomcat in the form domain.com/tomcat/nameOfWebapp?
Here is my workers.properties:
# Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009
Here is the relevant part of my httpd.conf:
LoadModule jk_module modules/mod_jk.so <IfModule jk_module> JkWorkersFile D:/servers/tomcat7.0/conf/workers.properties JkLogFile D:/servers/tomcat7.0/logs/mod_jk.log JkLogStampFormat "[%b %d %Y - %H:%M:%S] " JkRequestLogFormat "%w %V %T" JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories Alias /tomcat "D:/servers/tomcat7.0/webapps/" <Directory "D:/servers/tomcat7.0/webapps/"> AllowOverride None Allow from all </Directory> <Location /*/WEB-INF/*> deny from all </Location> JkMount /tomcat/* worker1 </IfModule>
If I just do something like JkMount /manager* worker1 I can get the manager webapp to work, but how can I get it to load any app that is deployed to Tomcat?
What I have now gives me this error:
The requested resource (/tomcat/manager/) is not available.
when trying to visit domain.com/tomcat/manager. The error is given by Tomcat so it's getting to it but for some reason it doesn't want to load it.