mod_jk not work?

Discussion in 'Installation/Configuration' started by psaingtong, Oct 23, 2006.

  1. psaingtong

    psaingtong New Member

    Hi,
    I use ISPConfig-2.2.6 on fedora4(work fine).
    On mod_jk,file .jsp work fine but another file not work.(jk-1.2.16)
    This is my config:

    1./etc/httpd/conf.d/mod_jk.conf:
    LoadModule jk_module modules/mod_jk.so

    JkWorkersFile /etc/httpd/workers.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel info

    2./etc/httpd/workers.properties:
    workers.tomcat_home=/usr/lib/apache-tomcat

    workers.java_home=/usr/lib/jdk

    ps=/


    worker.list=ajp13

    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13
    worker.ajp13.lbfactor=1

    worker.loadbalancer.type=lb
    worker.loadbalancer.balanced_workers=worker1

    worker.inprocess.type=jni
    worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
    worker.inprocess.cmd_line=start

    worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)classic$(ps)libjvm.so

    worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
    worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

    3./etc/httpd/conf/vhosts/Vhosts_ispconfig.conf:
    add this line
    JkMount /jsp-examples ajp13
    JkMount /jsp-examples/*/ ajp13

    4.in server.conf
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    ...
    <Host name="xxx" appBase="/var/www/web3/web"
    unpackWARs="true" autoDeploy="true">
    <Context path="" docBase="jsp-examples" debug="0" reloadable="true"/>

    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="web3_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    </Host>


    output of http://xxx/jsp-examples/dates/date.jsp

    Day of month: is
    Year: is
    Month: is
    Time: is
    Date: is
    Day: is
    Day Of Year: is
    Week Of Year: is
    era: is
    DST Offset: is
    Zone Offset: is

    Thank
    putty
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in Apache's error log?
     

Share This Page