繁体中文
设为首页
加入收藏
当前位置:PHP技术首页 >> PHP基础 >> Linux 下的 Apache+JServ+ojsp+SSL+PHP(IMAP+LDAP+MYSQL) 的安装(转二)

Linux 下的 Apache+JServ+ojsp+SSL+PHP(IMAP+LDAP+MYSQL) 的安装(转二)

2004-12-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:以下为我的jserv.conf 以及 jserv.properties,zone.properties # cat jserv.conf ###################################################################### ######### # ...

以下为我的jserv.conf 以及 jserv.properties,zone.properties

# cat jserv.conf

######################################################################

#########

# Apache JServ Configuration File

#

######################################################################

#########

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module

#LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module

# For shared object builds only!!!

#LoadModule jserv_module /usr/local/apache/jserv/libexec/mod_jserv.so

# Whether Apache must start Apache JServ or not (On=Manual Off=Autosta

rt)

# Syntax: ApJServManual [on/off]

# Default: "Off"

ApJServManual off

# Properties filename for Apache JServ in Automatic Mode.

# In manual mode this directive is ignored

# Syntax: ApJServProperties [filename]

# Default: "./conf/jserv.properties"

ApJServProperties /usr/local/apache/jserv/etc/jserv.properties

# Log file for this module operation relative to Apache root directory

.

# Set the name of the trace/log file. To avoid possible confusion abo

ut

# the location of this file, an absolute pathname is recommended.

#

# This log file is different than the log file that is in the

# jserv.properties file. This is the log file for the C portion of Apa

che

# JServ.

#

# On Unix, this file must have write permissions by the owner of the J

VM

# process. In other words, if you are running Apache JServ in manual m

ode

# and Apache is running as user nobody, then the file must have its

# permissions set so that that user can write to it.

# Syntax: ApJServLogFile [filename]

# Default: "./logs/mod_jserv.log"

# Note: when set to "DISABLED", the log will be redirected to Apache e

rror log

ApJServLogFile /usr/local/apache/logs/mod_jserv.log

# Log Level for this module

# Syntax: ApJServLogLevel [debug|info|notice|warn|error|crit|alert|eme

rg]

# Default: info (unless compiled w/ JSERV_DEBUG, in which case it's

debug)

ApJServLogLevel notice

# Protocol used by this host to connect to Apache JServ

# (see documentation for more details on available protocols)

# Syntax: ApJServDefaultProtocol [name]

# Default: "ajpv12"

ApJServDefaultProtocol ajpv12

# Default host on which Apache JServ is running

# Syntax: ApJServDefaultHost [hostname]

# Default: "localhost"

#ApJServDefaultHost java.apache.org

#ApJServDefaultHost www.snc.siemens.com.cn

# Default port that Apache JServ is listening to

# Syntax: ApJServDefaultPort [number]

# Default: protocol-dependant (for ajpv12 protocol this is "8007")

ApJServDefaultPort 8007

# The amount of time to give to the JVM to start up as well

# as the amount of time to wait to ping the JVM to see if it

# is alive. Slow or heavily loaded machines might want to

# increase this value.

# Default: 10 seconds

# ApJServVMTimeout 10

# Passes parameter and value to specified protocol.

# Syntax: ApJServProtocolParameter [name] [parameter] [value]

# Default: NONE

# Note: Currently no protocols handle this. Introduced for future prot

ocols.

# Apache JServ secret key file relative to Apache root directory.

# Syntax: ApJServSecretKey [filename]

# Default: "./conf/jserv.secret.key"

# Warning: if authentication is DISABLED, everyone on this machine (no

t just

# this module) may connect to your servlet engine and execute servlet

# bypassing web server restrictions. See the documentation for more in

formation

#ApJServSecretKey /usr/local/apache/jserv/etc/jserv.secret.key

ApJServSecretKey DISABLED

# Mount point for Servlet zones

# (see documentation for more information on servlet zones)

# Syntax: ApJServMount [name] [jserv-url]

# Default: NONE

# Note: [name] is the name of the Apache URI path to mount jserv-url o

n

# [jserv-url] is something like "protocol://host:port/zone"

# If protocol, host or port are not specified, the values from

# "ApJServDefaultProtocol", "ApJServDefaultHost" or "ApJServDefaultPo

rt"

# will be used.

# If zone is not specified, the zone name will be the first subdirect

ory of

# the called servlet.

# Example: "ApJServMount /servlets /myServlets"

# if user requests "http://host/servlets/TestServlet"

# the servlet "TestServlet" in zone "myServlets" on default host

# thru default protocol on defaul port will be requested

# Example: "ApJServMount /servlets ajpv12://localhost:8007"

# if user requests "http://host/servlets/myServlets/TestServlet"

# the servlet "TestServlet" in zone "myServlets" will be requested

# Example: "ApJServMount /servlets ajpv12://jserv.mydomain.com:15643/m

yServlets"

# if user requests "http://host/servlets/TestServlet" the servlet

# "TestServlet" in zone "myServlets" on host "jserv.mydomain.com" usi

ng

# "ajpv12" protocol on port "15643" will be executed

ApJServMount /servlets /root

ApJServMount /servlet /root

# Whether inherits base host mount points or not

# Syntax: ApJServMountCopy [on/off]

# Default: "On"

# Note: This directive is meaninful only when virtual hosts are being

used

ApJServMountCopy on

# Executes a servlet passing filename with proper extension in PATH_TR

ANSLATED

# property of servlet request.

# Syntax: ApJServAction [extension] [servlet-uri]

# Defaults: NONE

# Notes: This is used for external tools.

#ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet

#ApJServAction .gsp /servlets/com.bitmechanic.gsp.GspServlet

#ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI

#ApJServAction .xml /servlets/org.apache.cocoon.Cocoon

#ApJServAction .jsp /alph/gnujsp

ApJServAction .jsp /servlets/oracle.jsp.JspServlet

ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI

# Enable the Apache JServ status handler with the URL of

# "http://servername/jserv/" (note the trailing slash!)

# Change the "deny" directive to restrict access to this status page.

SetHandler jserv-status

order deny,allow

deny from all

allow from 127.0.0.1

############################## W A R N I N G #########################

#########

# Remember to disable or otherwise protect the execution of the Apache

JServ #

# Status Handler (see right above) on a production environment since t

his may #

# give untrusted users the ability to obtain restricted information on

your #

# servlets and their initialization arguments such as JDBC passwords a

nd #

# other important information. The Apache JServ Status Handler should

be #

# accessible only by system administrators.

#

######################################################################

#########

责任编辑:admin
相关文章