I have a Tomcat-Apache server (RHat Linux), which uses the webapp connector, and is 
setup with multiple virtual hosts. I am failing to setup the manager app for each 
virtual host, and hope that someone can help show me the error of my ways.  I have 
re-read the docs, scoured the archives, and have yet to find a solution that works (or 
good documentation on this).  Below I include a relevent portion of httpd.conf, and 
also of server.xml
I have everything set up as the docs outline (including adding the manager role to my 
tomcat-users.xml), but when I try to access a virtual hosts manager app at: 
virtualhost.com/manager  I get a 404 "The requested resource(/manager/) is not 
available.
Of the two ways you can setup the manager app with virtual hosts (according to the 
docs) I tried both but currently have it set by adding a /manager context inside each 
<host> in my server.xml file.  I have also tried including an alias to the manager app 
in my httpd.conf for each virtual host, but that wasnt helpful either.
My virtual host section of my httpd.conf:

-------------------------------------------------------------------------
NameVirtualHost 10.8.100.9
NameVirtualHost 10.8.100.9:443


<VirtualHost 10.8.100.9>
  ServerName dev2.mydomain.com
<IfModule mod_webapp.c>
        WebAppConnection con1  warp 10.8.100.9:2002
        WebAppDeploy    /info/server/apache/tomcat4.1/webapps/dev2  con1  /
</IfModule>
<Directory />
  Options Indexes FollowSymLinks
  DirectoryIndex index.jsp index.html index.htm index.php
  Order deny,allow
  Deny from all
  Allow from 206.61.185
  Allow from 63.83.225
</Directory>
<Location "/WEB-INF/*">
   AllowOverride None
   deny from all
</Location>
</VirtualHost>


<VirtualHost 10.8.100.9>
   ServerName dev3.mydomain.com
<IfModule mod_usertrack.c>
    CookieTracking on
    CookieName AlignUser
CustomLog logs/clickstream "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" 
\"%{User-agent}i\" \"AlignUser=%{Cookie}n\"
</IfModule>
<IfModule mod_webapp.c>
        WebAppConnection con2  warp 10.8.100.9:2002
        WebAppDeploy    /info/server/apache/tomcat4.1/webapps/dev3  con2  /
</IfModule>
<Directory />

-------------------------------------------------------------------------

and here is portion of server.xml:

-------------------------------------------------------------------------

<!-- Define the dev2 virtual host -->
<Host name="dev2.alignmentsoftware.com" debug="0" 
appBase="/info/server/apache/tomcat4.1/webapps" unpackWARs="true">
<!-- Default Context -->
<Context path="" docBase="/info/server/apache/tomcat4.1/webapps/ga"
        debug="0" reloadable="true">
</Context>

<Context path="/manager" debug="0" privileged="true" 
docBase="/info/server/apache/tomcat4.1/server/webapps/manager">
</Context>
</Host>


<!-- Define the dev3 virtual host -->
<Host name="dev3.alignmentsoftware.com" debug="0" 
appBase="/info/server/apache/tomcat4.1/webapps" unpackWARs="true">
<Context path="" docBase="/info/server/apache/tomcat4.1/webapps/dev3"
        debug="0" crossContext="true" reloadable="true">
</Context>
<Context path="/manager" debug="0" privileged="true" 
docBase="/info/server/apache/tomcat4.1/server/webapps/manager">
</Context>
</Host>

-----------------------------------------------------------------------
Everything else is working just fine and there are no helpful error mesg's in 
catalina.out... I sure would like to play around with the new web-based manager.
thanks in advance,
T.0'Maley



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to