#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    London, UK
    Posts
    0
    Rep Power
    0

    Angry Help with forcing protocal to ajp13


    I am running Win NT4.0 with Apache 1.3.20 and Tomcat 3.2.2. As a redirector between Apache and Tomcat, I am using mod_jk rather than JServ.

    I am attempting to force the default protocol redirector from Apache to Tomcat to be ajp13, rather than the usual ajp12.

    An extract from uriworkermap.properties-auto, show that I'm failing miserably......

    ###################################################################
    # Auto generated configuration. Dated: Mon Jul 16 14:02:13 GMT 2001
    ###################################################################

    #
    # Default worker to be used through our mappings
    #
    default.worker=ajp12

    #
    # Root context mounts for Tomcat
    #
    /servlet/*=$(default.worker)
    /*.jsp=$(default.worker)


    Can anyone help?

    Many Thanks
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Location
    Winnipeg, Canada
    Posts
    10
    Rep Power
    0
    Do you have:

    <RequestInterceptor className="org.apache.tomcat.modules.server.Ajp13Interceptor"
    port="8009"/>
    in your server.xml file? If not, put it in there. You will also have to add something like:

    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /otherworker/*.jsp remoteworker

    into the mod_jk.conf file that you included into apache's httpd.conf
    That would map any request that ends in .jsp or begins with /servlet to the ajp13 worker. You can also use the JKMount directive in the Virtual Host section of httpd.conf.

    Hope that helps....
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    London, UK
    Posts
    0
    Rep Power
    0
    Rick,

    Thanks for your help - I now have a working Apache/Tomcat using ajp13....

    Many Thanks

IMN logo majestic logo threadwatch logo seochat tools logo