You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/08 20:58:15 UTC

DO NOT REPLY [Bug 12750] - Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12750>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12750

Virtual hosts using Apache 2.0.40, Tomcat 4.1.10 and mod_jk2





------- Additional Comments From jswedberg@mail.com  2003-04-08 18:58 -------
I also have encountered the same problem as Dave.
I am running Apache 2.0.44 and Tomcat 4.1.24, with mod_jk2 2.0.1-1.

---------------------------------------------
Here is my workers2.properties file:

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

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

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

[uri:/examples/*]
info=Map the whole webapp

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

[uri:www.richlandmeadows.org]
info=RichlandMeadows virtual host
alias=192.168.1.8
alias=helios2

--------------------------------------------
Here is the relevant apache vhosts definition:

<VirtualHost 192.168.1.8>
  ServerAdmin rmna@richlandmeadows.org
  DocumentRoot /home/httpd/richlandmeadows.org/html
  ServerName www.richlandmeadows.org
  Alias /icons/ /home/httpd/richlandmeadows.org/icons/
  ScriptAlias /cgi-bin/ /home/httpd/richlandmeadows.org/cgi-bin/
  ErrorLog logs/richlandmeadows.org/error_log
  CustomLog logs/richlandmeadows.org/access_log combined
</VirtualHost>

----------------------------------------
And here is the snippet from the tomcat Host server.xml file:

<Host name="www.richlandmeadows.org" unpackWARs="true" debug="4"
      appBase="/home/httpd/richlandmeadows.org/html">
  <Alias>192.168.1.8</Alias>
  <Alias>helios2</Alias>
  <DefaultContext reloadable="true" swallowOutput="true"/>
  <Logger className="org.apache.catalina.logger.FileLogger"
          prefix="richlandmeadows_org_log." suffix=".txt"
          verbosity="3" timestamp="true"/>
</Host>

-------------------------------
I can get the "examples" and jk-status to run fine on localhost, but when I try 
to access a servlet or JSP on the virtual host tomcat never sees the request, 
as far as I can tell.  I get a 404 "File not found" error and the logs do not 
show any attempt to access the servlet.  I have tried various combinations of 
trading around the aliases, but that does not seem to be the problem.

If you'd like I can attache the full configuration files.

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