-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,all. I want integrat Apache server and tomcat7.0,step by:
1,
#httpd.conf:
include conf/mod_jk.conf
Alias /web "D:/wwwroot/"
<Directory "D:/wwwroot">
Options Indexes MultiViews
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
2,
# mod_jk.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkMountFile conf/zk.properties
JkLogFile logs/mod_jk2.log
JkLogLevel Warn
JkMount /*.jsp worker1
JkMount /servlet/* worker1
JkMount /*.do worker1
3,
# workers.properties
workers.tomcat_home=TOMCAT_HOME
workers.java_home=JAVA_HOME
ps=\
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
4,
#zk.properties
/zksandbox/*=worker1
/*.zul=worker1
/*.dsp=worker1
5,
#server.xml
#insert:
<Context path="/web" docBase="D:/wwwroot" reloadable="true" workDir="D:/wwwroot/work"> </Context>
#before </Host>
6,I copy zksandbox into d:\wwwroot\zksandbox
when I open http://localhost/web/zksandbox/index.zul,it can only view index.zul code. why?
can you tell me? thks.
Hi,
In step2, can you try add "JkMount *.zul work1" instead of using JkMountFile.
Hi,
In step2, add "JKMount *.zul worker1", comment out #JkMountFile conf/zk.properties
In stpe6, did you add zksandbox.war or just zksandbox directory?
Also make sure the mod_jk.so is the latest version.
yes. *.jsp can run, *.zul can't run, only can view code in IE.
Hi
I have tried it out with the following settings and works fine:
1. httpd.conf
include conf/mod_jk.conf Alias /web "C:/wwwroot" <Directory "C:/wwwroot"> Options Indexes MultiViews AddOutputFilter Includes html AllowOverride None Order allow,deny Allow from all </Directory>
LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkMountFile conf/zk.properties JkLogFile logs/mod_jk2.log JkLogLevel Warn
workers.tomcat_home="C:\Program Files\Apache Software Foundation\Tomcat 7.0" workers.java_home="C:\Program Files\Java\jre6" ps=\ worker.list=worker1 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=1
/zksandbox/*=worker1 !*.html=* !*.jpeg=* !*.jpg=* !*.png=* !*.gif=* !*.css=* !*.js=*
<Host name="localhost" appBase="C:/wwwroot" unpackWARs="true" autoDeploy="true"> </Host>
Asked: 2011-11-02 03:26:21 +0800
Seen: 796 times
Last updated: Dec 05 '11