Sun ONE logo     Previous      Contents     
Sun ONE Web Proxy Server Deployment Guide


 SymbolsABCDEFGHIJKLMNOPQRSTUVWXYZ 

Sample Object Configuration File

# obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.
Init fn="load-types" mime-types="mime.types"
Init fn="init-proxy" timeout="1200" timeout-2="15"
Init fn="init-dns-cache" status="on" dir="/tmp" semas="4" size="512" expire="3600"
Init fn="init-cache" status="on" dir="/export/home/cache/d1" ndirs="16"
Init fn="init-partition" status="on" dir="/export/home/cache/d1" max-size="1000" min-avail="5" name="Part-1"
Init fn="init-urldb" status="on" dir="/export/home/cache/d1/urldb"
Init fn="init-batch-update" conf-file="bu.conf" status="off" dir="/tmp"
Init fn="init-partition" status="on" dir="/export/home/cache/d2" max-size="1000" min-avail="10" name="Part-2"
Init fn="load-modules" funcs="ns-umatch-init,ns-umatch,ns-umatch-free" shlib="/opt/ns-home/nsapi/examples/example.so"
Init fn="ns-umatch-init" file="/opt/ns-home/maplist" hashsize="5"
<Object name="default">
NameTrans from="http://.*~http://[^:/]*\\.netscape\\.com.*" fn="assign-name" name="josh"
NameTrans fn="map" from="file:" to="ftp:"
NameTrans fn="pfx2dir" from="/ns-icons" dir="/opt/ns-home/ns-icons" name="file"
NameTrans fn="pac-map" from="/" to="/opt/ns-home/proxy-pac/pac/proxy.pac" name="file"
PathCheck fn="url-check"
Service fn="deny-service"
AddLog fn="flex-log" iponly="1" name="access"
AddLog fn="urldb-record"
</Object>
<Object name="file">
PathCheck fn="unix-uri-clean"
PathCheck fn="find-index" index-names="index.html"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service fn="send-file"
</Object>
<Object ppath="ftp://.*">
ObjectType fn="cache-enable"
ObjectType fn="cache-setting" max-uncheck="21600"
Service fn="proxy-retrieve"
</Object>
<Object ppath="http://.*">
NameTrans fn="ns-umatch" ldomain="mcom.com" mode="handoff"
ObjectType fn="cache-enable"
ObjectType fn="cache-setting" lm-factor="0.100" max-uncheck="7200"
Service fn="proxy-retrieve"
</Object>
<Object ppath="https://.*">
Service fn="proxy-retrieve"
</Object>
<Object ppath="gopher://.*">
ObjectType fn="cache-enable"
ObjectType fn="cache-setting" max-uncheck="14400"
Service fn="proxy-retrieve"
</Object>
<Object ppath="connect://.*:443">
Service fn="connect" method="CONNECT"
</Object>
<Object ppath="connect://.*:563">
Service fn="connect" method="CONNECT"
</Object>
<Object name="josh">
ObjectType fn="cache-enable"
ObjectType fn="cache-setting" max-uncheck="0"
</Object>


Previous      Contents     
Copyright 2003 Sun Microsystems, Inc. All rights reserved.