tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditya <>
Subject SSL redirects with mod_jk
Date Sun, 14 Apr 2002 19:47:22 GMT
I have apache 1.3+mod_ssl and mod_jk (ajp13) "fronting" a Tomcat 4.0.3 server
which has a servlet protected by:


I assume that for performance reasons that it would be best if I could run no
connectors other than the AJP13 one.
Ideally, calls to the above servlet as http should be redirected to the
equivalent https page. To that end, I have, in my server.xml:

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="30" maxProcessors="150"
               acceptCount="10" debug="0"
               enableLookups="false" redirectPort="443"
               secure="false" scheme="http"

however the redirect won't work (Status 500 error) unless I put in an HTTPS
connector as well in server.xml (note that it doesn't have to be accessible at
all, hence the and port 8443 is blocked off so it doesn't seem to
play any part in the whole deal other than to signal to Tomcat that it can
handle redirects to SSL):

    <!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               address="" port="8443" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0" scheme="https" secure="true">
      <Factory className=""
               clientAuth="false" protocol="TLS"

(I tried putting in an additional ajp13 connector that mod_jk sent anything
that showed up as SSL to, but that didn't work).

Is this how it's supposed to work? If so, it should be documented somewhere...


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

View raw message