tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Grummons <>
Subject warp conn causes apache redirect to be ignored
Date Mon, 14 Jan 2002 22:04:04 GMT
Hi all,

I've been through all the documentation I can get my eyes on, and I can't
seem to get around this problem:

I'm running Tomcat 4.0 and Apache 1.3.22.  I have a Virtual Host set up in
my httpd.conf  as follows: 

 ### TomCat Warp Connector
WebAppConnection	Apache	        warp	webcruise01:8008

        ServerName ovs
        DocumentRoot "/home/httpd/www/static/ovs"
   Redirect Permanent /somepage.asp

     <Directory "/home/httpd/www/static/ovs">
        Options FollowSymLinks Indexes
        AllowOverride None
        Order allow,deny
        Allow from all

     WebAppDeploy	ovs       Apache	    /

For whatever reason, the WebAppDeploy line prevents apache from seeing the
redirect line.  If I comment out the WebAppDeploy line then the redirect
works.  I can also get the redirect to work if I place it outside the
virtual host on the main server context.  But the minute I uncomment the
WebAppDeploy line, tomcat either gives me a 404 error, or in the case were
the file actually exists, it just shows it as html; instead of processing
the redirect.   And before you ask, I do have the http connector disabled in
server.xml.  Other than this problem, Apache seems to handle html pages

So what I'm desperate to know is, how do I get tomcat to allow apache to
process the redirect line?  Do I have to do something in the server.xml or
web.xml to force tomcat to give control back to apache??  

I've included my server.xml file below just incase there's any questions
about it.

thanks in advance,

~Jeff Grummons

<!-- Custom Server Configuration File -->

<Server port="8005" shutdown="SHUTDOWN" debug="0">

   <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="255"
     acceptCount="10" debug="0"/>

	<!-- defaultHost needs to match "ServerName" in httpd.conf -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" defaultHost="localhost" debug="0" >

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- OVS Host      -->

      <Host name="ovs" debug="0" appBase="/home/httpd/www"

        <!-- Access log -->
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="ovs_access_log." suffix=".txt"

        <!-- Logger -->

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="ovs_log." suffix=".txt"

        <!-- OVS Context -->

        <Context path="" docBase="static/ovs" debug="0"

          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="ovs_context_log." suffix=".txt"


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message