Re: Configuring Manager for different Virtual Hosts
Anto, Thanks for replying.. Sadly there must be something else to configure.. I did read all the relevant documents and the manager works fine for the default webapps context. I added the line you suggested to that virtual host.. restarted everything (including Apache) I then type in http:// virtualhost URL/manager/html ... and Tomcat indicates that such a context does not exist.. This, in my thinking is understandable, because I have not configured a context IN tomcat (i.e. server.xml) for that Host and that is what I think I'm missing.. It is just can not find any documentation to help me on this.. (though I remember seeing a discussion on this somewhere..) I tried to pattern after the default host but because my webapps are down one more level in the directory structure the pattern Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager ..does not work.. it parses it to Alias /usr/local/tomcat/webapps/someapp/../server/webapps/manager .. which does not exist.. If you have a momment, please reread my original message that explains the configuration of my web applications.. Any ideas would be appreciated... Thanks again for taking the time to respond.. John.. Anto Paul wrote: I have a single line to do it in the VirtualHost JkMount /manager/* a9 First configure manager application as specified in the Manager how to. There are some config steps in Tomcat if you have different CATALINA_BASE for each web application.
Re: Configuring Manager for different Virtual Hosts
Folks, I got it working finally...(after several days of repeated head banging..) Following is how I got it to work (Tomcat 4.1.29).. 1) Copy the folder $CATALINA_HOME/server/webapps/manager ..to the directory that contains your web application.. Example: $CATALINA_HOME = /usr/local/tomcat ..copy folder /usr/local/tomcat/server/webapps/manager to /usr/local/tomcat/webapps/somesubdirectory/ 2) Copy the manager.xml found in the main webapps directory: $CATALINA_HOME/webapps/manager.xml ...to the same directory that you copied the manager folder.. 3) Edit manager.xml Change the docBase attribute to reflect the location copied to above.. Example: docBase=/usr/local/tomcat/webapps/somesubdirectory/manager 4) Edit either your mod_jk.conf file or the specific copy for that host. (here I keep a custom conf file for each host, with the name of that host.conf) This is the same file or files that you include in the Apache httpd.conf file (There may be other ways around this, but this is the way I did it..) a) Open the mod_jk.conf file (after Tomcat has be started at least once if you have AutoConfig on..) and find the localhost:/manager section. Copy this entire section to the end of the JkMount commands.. b) Paste this section into each VirtualHost setting (possibly a different .conf file..) c) Edit the Alias and Directory tags to reflect the same full path to the manager folder.. 5) Make sure you have setup the role manager in the tomcat_users.xml file and a user for that role. (Instructions in the Manager HowTo) 6) Restart Tomcat 7) Access manager via a browser at http://your.domainhere.com:8080/manager/html (I have yet to get it to load directly through Apache yet.. for my purposes this is fine and works for me..) Hope that helps someone... John Moore SonicSpider LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring Manager for different Virtual Hosts
I know I saw the info on this topic somewhere, but for the life of me, I can not relocate it.. (can not come up with the magic search strings... I spent hours trying different searches...) Task: I am trying to configure the Manager tool to manage different virtual hosts on a webserver (Apache - Tomcat 4.1.29) so that I can restart a single webapplication when I make changes. I have various subdirectories under webapps that are configured as separate hosts and contexts i.e. /webapps/someapp/ In that directory I have a web application and I want the setup the Manager for stopping and starting this app.. Using the example for the localhost context I saw the alias Alias /usr/local/tomcat/webapps/../server/webapps/manager ..along with all the related settings... Since my webapp is in /usr/local/tomcat/webapps/someapp/ I tried.. Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager .. along with related settings... No joy.. it dropped the first ../ and still can not track to that alias directory.. So am I chasing my tail..G And/or can someone point me to that phantom discusson on setting up the manager for other host/context/ subdirectories... Thanks... John...
Re: Configuring Manager for different Virtual Hosts
On Apr 1, 2005 11:38 PM, John B. Moore [EMAIL PROTECTED] wrote: I know I saw the info on this topic somewhere, but for the life of me, I can not relocate it.. (can not come up with the magic search strings... I spent hours trying different searches...) Task: I am trying to configure the Manager tool to manage different virtual hosts on a webserver (Apache - Tomcat 4.1.29) so that I can restart a single webapplication when I make changes. I have various subdirectories under webapps that are configured as separate hosts and contexts i.e. /webapps/someapp/ In that directory I have a web application and I want the setup the Manager for stopping and starting this app.. Using the example for the localhost context I saw the alias Alias /usr/local/tomcat/webapps/../server/webapps/manager ..along with all the related settings... Since my webapp is in /usr/local/tomcat/webapps/someapp/ I tried.. Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager .. along with related settings... No joy.. it dropped the first ../ and still can not track to that alias directory.. So am I chasing my tail..G And/or can someone point me to that phantom discusson on setting up the manager for other host/context/ subdirectories... Thanks... John... I have a single line to do it in the VirtualHost JkMount /manager/* a9 First configure manager application as specified in the Manager how to. There are some config steps in Tomcat if you have different CATALINA_BASE for each web application. -- Anto Paul Benchmark Softech www.benchmarksoft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]