--

Jon,

I can only get Basic authentication to work with Jserv 1.0 using a
<Location> block. <Directory> blocks do not work. <Directory> blocks used to
work with jserv 0.9.12. Is this a bug in the new Jserv 1.0? My hope is that
I could have the choice of using either <Location> or <Directory> to control
access. Any light you can shed on this would be great.

Thanks!
Steve Nielsen ([EMAIL PROTECTED])

Here is my configuration:
==================
Apache 1.3.6 (DS0 - mod_so is the only statically linked module)
HPUX 10.20
Apache Jserv 1.0 or Jserv 0.9.12 (depending on the -D flag to httpd)

Here is a working config file that allows you to use either Jserv 1.0 or
jserv 0.9.12 to test the problem I am having:
============================================================================
=====
##
## httpd.conf -- Apache HTTP server configuration file
##

LoadModule mime_module libexec/mod_mime.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule dir_module  libexec/mod_dir.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so

##-- run 1.0
<IfDefine jserv-1.0>
    LoadModule jserv_module libexec/mod_jserv.so
</IfDefine>

##-- run 0.9.12
<IfDefine jserv-0.9.12>
    LoadModule jserv_module libexec/old_mod_jserv.so
</IfDefine>
LoadModule status_module libexec/mod_status.so

ClearModuleList

AddModule mod_mime.c
AddModule mod_log_config.c
AddModule mod_dir.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_jserv.c
AddModule mod_jserv.c
AddModule mod_status.c

ServerRoot /web.dev.sys/apache
ResourceConfig /dev/null
AccessConfig /dev/null
Port 8080
User mozilla
Group web
ServerAdmin mozilla@intdata2
ServerName intdata2
DocumentRoot /web.dev.sys/apache/htdocs
DirectoryIndex index.html
UseCanonicalName off
DefaultType text/plain
HostnameLookups Off

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /web.dev.sys/apache/logs/access_log common

##-- this basic authentication setup works with jserv 0.9.12 but now with
jserv 1.0
<Directory />
    Options none
    AllowOverride All
    AuthType Basic
    AuthName jserv-test
    AuthUserFile /web.dev.sys/apache/conf/passwd
    require valid-user
</Directory>

<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>

<Location /groups/webadmin/server-status>
    SetHandler server-status
</Location>

##-- only <Location> seems to allow Basic authentication to work with jserv
1.0. The caveat
##-- however with <Location> is that you cannot use .htaccess files to
control access.
#<Location /servlet>
#   AuthType Basic
#   AuthName msgboard_access
#   AuthUserFile /web.dev.sys/apache/conf/passwd
#   require user waspn
#</Location>

##-- jserv 1.0 config
<IfDefine jserv-1.0>
    ApJServLogFile logs/mod_jserv.log
    ApJServManual on
    ApJServLogLevel notice
    ApJServSecretKey DISABLED
    ApJServDefaultPort 10100
    ApJServMount /servlet /groups_webadmin
</IfDefine>

##-- jserv 0.9.12 config
<IfDefine jserv-0.9.12>
    ServletPort 8007
    ServletBinary /opt/java/bin/java
    ServletClassPath
/opt/java/lib/classes.zip:/web.dev.sys/apache/jserv/classes/servclasses.zip:
/web.dev.sys/apache/jserv/classes/jserv-0.9.12.jar
    ServletErrorLog logs/jserv_errors.log
    ServletProperties conf/servlet.properties
    ServletAlias /servlet /web.dev.sys/apache/jserv/servlet
</IfDefine>


--
--------------------------------------------------------------
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