Linux 下的 Apache+JServ+ojsp+SSL+PHP(IMAP+LDAP+MYSQL
2024-08-27 18:28:35
供稿:网友
# cat zone.properties
######################################################################
#########
# servlet zone configuration file
#
######################################################################
#########
# list of repositories
#######################
# the list of servlet repositories controlled by this servlet zone
# syntax: repositories=[repository],[repository]...
# default: none
# note: the classes you want to be reloaded upon modification should b
e put
# here.
repositories=/usr/local/apache/jserv/servlets
repositories=/usr/local/apache/jserv/libexec/apachejserv.jar
repositories=/usr/local/apache/jserv/libexec/apachejssi.jar
# classloader parameters
#########################
# enable servlet class autoreloading.
# syntax: autoreload.classes=[true,false] (boolean)
# default: true
autoreload.classes=true
# enable servlet resourced autoreloading (properties and other loaded
resources)
# syntax: autoreload.file=[true,false] (boolean)
# default: true
autoreload.file=true
# set the number of millisecond to wait before giving up on initializi
ng a servlet.
# (a timeout of zero means no timeout)
# syntax: init.timeout=(long)>0
# default: 10000 (10 secs)
init.timeout=10000
# set the number of millisecond to wait before giving up on destroying
a servlet.
# (a timeout of zero means no timeout)
# syntax: destroy.timeout=(long)>0
# default: 10000 (10 secs)
destroy.timeout=10000
# session cookie parameters
############################
# syntax: session.usecookies=[true,false] (boolean)
# default: true
session.usecookies=true
# set the number of millisecond to wait before invalidating an unused
session.
# syntax: session.timeout=(long)>0
# default: 1800000 (30 mins)
session.timeout=1800000
# set how frequently (milliseconds) to check for timed-out sessions.
# syntax: session.checkfrequency=(long)>0
# default: 30000 (30 secs)
session.checkfrequency=30000
# set the domain= header that gets sent with the cookie. this is
# entirely optional
# default: null
#session.topleveldomain=.foo.com
# singlethreadmodel servlets parameters
########################################
# set the initial capacity of the stm servlets pool.
# syntax: singlethreadmodelservlet.initialcapacity=(int)>1
# default: 5
singlethreadmodelservlet.initialcapacity=5
# set the number of servlet instances should be added to the pool if f
ound empty.
# syntax: singlethreadmodelservlet.incrementcapacity=(int)>1
# default: 5
singlethreadmodelservlet.incrementcapacity=5
# set the maximum capacity of the stm pool
# syntax: singlethreadmodelservlet.maximumcapacity=(int)>1
# default: 10
singlethreadmodelservlet.maximumcapacity=10
################### s e r v l e t p a r a m e t e r s #############
#########
# oracle jsr servlet initargs
#################################
servlet.oracle.jsp.jspservlet.initargs=developer_mode=false
servlet.oracle.jsp.jspservlet.initargs=translate_params=true
servlet.oracle.jsp.jspservlet.initargs=page_repository_root=/var/apach
e/jsp
servlet.oracle.jsp.jspservlet.initargs=classpath=/usr/local/jdk/lib/dt
.jar:/usr/local/jdk/lib/tools.jar:/usr/local/jsdk/lib/jsdk.jar:/usr/lo
cal/jswdk/lib/servlet.jar
servlet.oracle.jsp.jspservlet.initargs=scratchdir=/var/apache/jsp
servlet.oracle.jsp.jspservlet.initargs=compiler=builtin-javac -classpa
th %classpath%:%scratchdir%:/usr
servlet.oracle.jsp.jspservlet.initargs=jserv=true
scratchdir 的模式我是 777.没有试验其他的值
至此应该全部安装完毕,/usr/local/apache/bin/apachectl startssl 应该可以
正常运行
接着可以测试servlet和jsp应用
另外:注意在url里面最好不要有"~"符号,否则可能有java编译问题
如果有什么问题可以互相探讨。
本文章来自于asp中华网(http://www.aspcn.com)如要转载请务必注明出处,谢谢