# @(#)nsapi.cfg 1.35 98/11/05 Copyright 1996 Sun Microsystems, Inc. # # nsapi.cfg # Base directory for the SUNWab2r package, which defines the ab2mgr and log directory set AB2RootDir / set AB2VarDir /var # Base directory for the SUNWab2s package, which defines the stylesheet directory set AB2ShareDir /usr # Base directory for the SUNWab2u package, which defines the server config directory set AB2UsrDir /usr set ServerPort 8888 # *FORNOW* # some programs may check this file for the variable values listed below, # these vars are not used locally set AB1_CARDCATALOG $AB2VarDir/log/ab2/catalog/ab1_cardcatalog # Set the following "autoconfig" variables to automatically configure/enable the server # forward home page to another location set autoconfig_indexpage_redirect 1 # ab2 SGML to HTML core engine, should be on except for debugging set autoconfig_SGML2HTML 1 # ab2 admin log control, get rid of query for add_user/change_psw request set autoconfig_admin_log 1 ## ## Initialization directives -- invoked once upon server startup ## # index page redirect if {$autoconfig_indexpage_redirect} { Init \ fn="load-modules" \ funcs="forward" \ shlib="$AB2UsrDir/lib/ab2/lib/libauthen.so" } # SGML2HTML plugin if {$autoconfig_SGML2HTML} { Init fn="DwspPluginNSAPI_1" \ data-dir="$AB2UsrDir/lib/ab2/dweb/data" \ lib-path="$AB2UsrDir/lib/ab2/dweb/sunos5/lib" \ config-file="ab2_main.template" \ default-catalog="dynaweb.cat" \ mimetypes-file="mime.types" \ service-list="ab2" } # admin log if {$autoconfig_admin_log} { Init \ fn="load-modules" \ funcs="admin_log" \ shlib="$AB2UsrDir/lib/ab2/lib/libauthen.so" } ## ## NameTrans directives -- controls name (aka path) translation ## NameTrans \ fn="pfx2dir" \ from="/cgi-bin" \ dir="$AB2UsrDir/lib/ab2/bin/ab2bin" \ name="cgi" # error pages, e.g. 404, refer to /dwicons NameTrans fn="pfx2dir" \ from="/dwicons" \ dir="$AB2UsrDir/lib/ab2/data/docs/icons" NameTrans \ fn="document-root" \ root="$AB2UsrDir/lib/ab2/data/docs" ## ## Patch Check directives -- controls path validation, index file determination ## PathCheck \ fn="unix-uri-clean" PathCheck \ fn="find-pathinfo" # index page if {!$autoconfig_indexpage_redirect} { PathCheck \ fn="find-index" \ index-names="index.html" } PathCheck \ fn="find-link" \ disable="s" \ dir="pix" # redirect index page to somewhere else if {$autoconfig_indexpage_redirect} { PathCheck \ fn="forward" \ dest="/ab2" } ## ## ObjectType directives -- controls content-type determination ## ObjectType \ fn="type-by-extension" ObjectType \ fn="force-type" \ type="text/plain" ## ## Service directives -- controls actual servicing of request ## # SGML2HTML if {$autoconfig_SGML2HTML} { Service \ fn="DwspPluginNSAPI_1" \ method="(GET|HEAD|POST)" \ data-dir="$AB2UsrDir/lib/ab2/dweb/data" \ ab2rootdir="$AB2RootDir" \ ab2vardir="$AB2VarDir" \ ab2sharedir="$AB2ShareDir" \ ab2usrdir="$AB2UsrDir" \ abcardcatalog="$AB1_CARDCATALOG" } Service \ fn="imagemap" \ method="(GET|HEAD)" \ type="magnus-internal/imagemap" # disable the ability to see directories #Service \ # fn="index-common" \ # method="(GET|HEAD)" \ # type="magnus-internal/directory" Service \ fn="send-file" \ method="(GET|HEAD)" \ type="*~magnus-internal/*" Service \ fn="send-cgi" \ method="(GET|POST)" \ type="magnus-internal/cgi" ## ## AddLog directives -- controls logging facilities ## # get rid of query info(id/password) for admin (add_user/change_psw) request # before it reaches the common-log if {$autoconfig_admin_log} { AddLog \ fn="admin_log" } AddLog \ fn="common-log"