Seriously, you'll probably get the response you keep looking for if you move
this thread to tomcat-dev instead of tomcat-user.  The people who
participate on this list aren't typically the developers, and the developers
who do participate here do so rarely because of time constraints and the
amount of traffic here.  If it's really a bug, you'll save yourself time,
effort, and grief by simply posting your findings to bugzilla and starting a
thread on tomcat-dev.

Repeatedly posting here with implied sarcasm that you're not getting the
response you want here because you aren't using Linux is unreasonable,
illogical, and rude.  There's a process for bugs, and complaining about them
or the lack or response by the developers to your complaints on tomcat-user
isn't it.

John


-----Original Message-----
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 24, 2003 11:45 PM
To: Tomcat Users List
Subject: Virtual host / web-apps / win2k and a BUG


I have been complaining about a problem I have had with Apache 2.0.43,
Tomcat 4.1.18, Jk2 and Windows 2000.

The problem stems from the fact that if you define multiple vhosts/web-apps
listed in the httpd.conf file, then the last web-app will work 100%, but
ONLY the last one.  If you have multiple web-apps listed (before the last
one), the JSP pages will only work if they are filed in the root directory
of that web-app.  If you put JSP's in any other sub-directory, they will NOT
be displayed correctly.  Only the source of the JSP page will show and that
will be a MAJOR security problem for anyone using multiple web-apps on
Apache-Tomcat on Windows 2000.

This fix can be corrected if you put the URI information in the
workers2.properties file.  I have been told you do not need to do this if
you put the <Location> tag inside the <VirtualHost> as I have shown ... but
as I said this only works for the LAST web-app listed.

I am 99.99999999999999999% that this is a BUG with either Tomcat and/or Jk2
because of the nature of the problem and how I solved it.

My next step is to take the same configuration and port it to Red Hat Linux
8.0 and see if the problem still happens.  If it is a problem in Linux also,
I do believe that this problem will be fixed faster.   I can 100% of the
time reproduce this problem, and have done so many times now.

If anyone has any questions, please let me know.   Thanks.

              Tom



In the httpd.conf file, I had my virtual host configured as:

<VirtualHost *>
 ServerName tomholmes.net
 ServerAlias test.tomholmes.net
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot d:/web_software/jakarta-tomcat-4.1.18/wwwroot/test
 <Location "/*.jsp">
  JkUriSet worker ajp13:localhost:8009
 </Location>
 ErrorLog logs/test-error_log
 CustomLog logs/test-access_log common
 DirectoryIndex default.jsp index.jsp
</VirtualHost>

Partial listing of the server.xml file had a <Host> tag setup as follows:

  <Host name="test.tomholmes.net" debug="0" appBase="wwwroot"
unpackWARs="true" autoDeploy="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="test_log." suffix=".txt" timestamp="true"/>
    <Context path="" docBase="test" debug="0" reloadable="true"
crossContext="true">
     <Logger className="org.apache.catalina.logger.FileLogger"
prefix="test_context_log." suffix=".txt" timestamp="true"/>
    </Context>
   </Host>

Partial listing of the workers2.properties file as follows:

[uri:/test]
info=Example webapp in the default context.
context=/test
debug=0

[uri:/test/*.jsp]
info=Extension mapping

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





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to