Alright, sorry to bother everyone with so many
questions, but here's another one.  Oh, and thanks for
the prompt responses on my last few.

I'm installing JServ 1.0b4 and everything compiles,
etc.

Now, after setting up my servlet zone, I get Forbidden
when trying to access servlet. 

As far as I can tell, I've set up the security to be
open (apparently not).

from a remote host, always get this for servlets, same
from the localhost.  http://localhost/status/jserv
does come up, though, so I suspect things are working.


Here is my httpd.conf:
###############################################################################
#                     Apache JServ Configuration File 
                       #
###############################################################################

# Note: this file should be appended to httpd.conf

# Tell Apache on win32 to load the Apache JServ
communication module
#LoadModule jserv_module modules/ApacheModuleJServ.dll

<IfModule mod_jserv.c>


# Whether Apache must start Apache JServ or not
(On=Manual Off=Autostart)
# 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/conf/jserv.properties

# Log file for this module operation relative to
Apache root directory. 
# Syntax: ApJServLogFile [filename]
# Default: "./logs/mod_jserv.log"
# Note: when set to "DISABLED", the log will be
redirected to Apache error log
ApJServLogFile /usr/local/apache/logs/mod_jserv.log

# Log Level for this module
# Syntax: ApJServLogLevel
[debug|info|notice|warn|error|crit|alert|emerg]
# 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: "ajpv11"
ApJServDefaultProtocol ajpv11

# Default host on which Apache JServ is running
# Syntax: ApJServDefaultHost [hostname]
# Default: "localhost"
ApJServDefaultHost "localhost" 

# Default port that Apache JServ is listening to
# Syntax: ApJServDefaultPort [number]
# Default: protocol-dependant (for ajpv11 protocol
this is "8007")
ApJServDefaultPort 8007

# Passes parameter and value to specified protocol.
# Syntax: ApJServProtocolParameter [name] [parameter]
[value]
# Default: NONE
# Note: Currently no protocols handle this. Introduced
for future protocols.

# Apache JServ secret key file relative to Apache root
directory.
# Syntax: ApJServSecretKey [filename]
# Default: "/usr/local/apache/conf/jserv.secret.key"
# Warning: if authentication is DISABLED, everyone on
this machine (not just
# this module) may connect to your servlet engine and
execute servlet 
# bypassing web server restrictions. See the
documentation for more information
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 on
#       [jserv-url] is something like
"protocol://host:port/zone"
#  If protocol, host or port are not specified, the
values from 
#  "ApJServDefaultProtocol", "ApJServDefaultHost" or
"ApJServDefaultPort" 
#  will be used. 
#  If zone is not specified, the zone name will be the
first subdirectory 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
ajpv11://localhost:8007"
#  if user requests
"http://host/servlets/myServlets/TestServlet"
#  the servlet "TestServlet" in zone "myServlets" will
be requested
# Example: "ApJServMount /servlets
ajpv11://jserv.mydomain.com:15643/myServlets"
#  if user requests "http://host/servlets/TestServlet"
the servlet 
#  "TestServlet" in zone "myServlets" on host
"jserv.mydomain.com" using 
#  "ajpv11" protocol on port "15643" will be executed
ApJServMount /servlets /servlets 

# Whether <VirtualHost> 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 off 

# Executes a servlet passing filename with proper
extension in PATH_TRANSLATED 
# property of servlet request.
# Syntax: ApJServAction [extension] [servlet-uri]
# Defaults: NONE
# Notes: This is used for external tools.
ApJServAction .jsp /servlets/nl.nmg.jsp.JSPServlet
#ApJServAction .gsp
/servlets/com.bitmechanics.gsp.GspServlet
#ApJServAction .jhtml
/servlets/org.apache.ssi.SSIServlet
#ApJServAction .xml /servlets/org.apache.cocoon.Cocoon

# 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.
<Location /jserv/>
  SetHandler jserv-status
  
  order deny,allow
  deny from all
  allow from localhost
</Location>

ApJServMount /servlets /servlets

</IfModule>






here's my jserv.properties:
port=8007

wrapper.bin=/usr/local/java/bin/java
wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
wrapper.classpath=/usr/local/jserv/lib/ApacheJServ.jar

zones=servlets
servlets.properties=/usr/local/apache/conf/jserv.servlets.properties

security.remote.administration=true
security.allowedAddresses=127.0.0.1
security.authentication=false
security.secretKey=/usr/local/apache/conf/jserv.secret.key

log=true
log.file=/usr/local/apache/logs/jserv.trace
log.timestamp=true
log.dateFormat=[yyyyMMdd HHmmss.SSS zz]
log.channel.init=true
log.channel.terminate=true
log.channel.serviceRequest=true
log.channel.authentication=true
log.channel.requestData=true
log.channel.responseHeaders=true
log.channel.signal=true
log.channel.exceptionTracing=true
log.channel.servletManager=true
log.channel.singleThreadModel=true


and my jserv.servlets.properties:
repositories=/data/local/apache/servlets
# 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 initializing 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

# 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




well?  any ideas?
ugh.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to