# 21-JUN-1995 # Configuration file for default server installation. See configfile.html # file for description of configuration (rules) file format. # #localaddress 127.0.0.1 localhost # set only for multi-homed host. #localaddress 128.146.235.69 kcgl23.eng.ohio-state.edu # set only for multi-homed host. #map /web/* /www/* #localaddress # close localaddress block #hostname www.xyxxy.com #Port 8000 # # Set trace level to current value of environment variable http_log_level. # Since second argument in TraceLevel rule is null, trace data will go # to error log file. Common trace levels: # 0 - No trace, errors only (default). # 1 - Show connect open and close and URL path info requested. # 6 - Trace script execution # 11 - Trace rule file translation steps. # TraceLevel http_log_level # # Enable access log (common format), entries will be appended to file access.log # AccessLog access.log # # Disable reverse host lookup. When enabled, hostnames appear in log file # rather than IP addresses. # DNSLookup off # # Enable statistics counters to track number of connections (clients) and\ # host classes. Note that DNSLookup must be on for non-numeric host masks. # EventCounter Clients EventCounter HostClass local 128.146.235.* EventCounter HostClass world ~128.146.*.* EventCounter HostClass kcgl23 kcgl23.eng.ohio-state.edu # # Define list of welcome files (index files) to search for when only a # directory is specified in the URL, 1 file per welcome directive. # Welcome index.html Welcome index.htmlx Welcome welcome.html # # Turn on directory browsing (on by default) so files that don't have # directories will get list of files formatted into HTML. # Note: The Welcome and DirAccess rules only apply when the internal browser # is being used, they don't apply if http_suffixes defines an external # browser (presenation rule for text/file-directory). # DirAccess on # include www_system:http_suffixes.conf # suffixes definitions. # # Comment out the following line to disable searches. The argument is # the script name (default www_system:.exe) to execute. # search www_root:[bin]index_search.exe #search www_root:[bin]dtsearch.com # # Comment out the following line to disable the authenticator sub-process. # The authenticator must be running in order for any 'protect' rules to # function properly. # authenticator \ www_system:cel_authenticator # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The remaining rules are translation/protection rules that govern how the # paths in requesting URLs are translated or trigger protection checks. The # ordering of these rules can affect the outcome of the translation # process. # # Protect certain urls in order to demonstrate the protection mechanism hostprot /www/hostprot.html www_system:level1.prot protect /www/userprot.html www_system:level2.prot # # Configure access to home files directory (www_root:[documents]). Set alias # /www to translate to /www_root/documents. # map / /www/index.html pass /www/* /www_root/documents/* pass /www_root/documents/* pass /www_root/script_code/* pass /www_root/base_code/* # # Comment out the follow line to disable user directory access. The server will # allow access to the web subdirectory of a user's account if set by the user. # userdir www # # # If not a file directory, see if URL matches a script directory. # map /help* /htbin/helpgate/help* include www_system:http_scripts.conf # # Only allow certain of the login directory (www_root:[000000]) files to be # accessible, then prohibit www_root/000000/* in order to prevent users from # circumventing the protected files by putting adding a series of root dirs. # pass /www_root/000000/wwwexec.com fail /www_root/000000/* # # Fail everything else (this is the default, but include for completeness). # fail * ################################################################################## # # Format of rules file: {see configfile.html} # # Operation: # At server startup, rules file is read sequentially. The presence and/or # values of any 'search', 'authenticator', 'suffix', and 'presentation' # commands is noted/saved. All other rules are tokenized and saved # in a table for processing in the same order that they occur in the rules # file when a URL is to be translated. Comments are discarded. # # The ident portion of a URL is translated by making a copy of it in a work # area and testing the work area copy against each entry in the tokenized # rule list. A rule that matches against the translation in the work area # may rewrite the translation (see map rule), subsequent tests for # triggering rules will be made against the new translation. # # The data from suffix rules is kept in a different data structure optimized # for finding highest quality representation supported by a client request. ##################################################################################