# Plexus config file # # local.conf,v 2.16 1994/12/07 23:44:45 sanders Exp # # Tony Sanders , April 1993 # # This file is read as the www user and after plexus.conf has been loaded ############################################################################# # # # Syntax: [$ means that the string will have variables expanded in it] # # # # loadpath $path [$path ...] ; path relative to $plexus_top # # load $perlsource [$perlsource ...] ; `require's the specified file # # set variable $string ; sets $plexus{variable} # # hide $path ; hide the file from dir.pl # # map $topdir perlsource string_to_eval ; perlsource can be `load'ed first # # translate perl_func from_type to_type ; perl_func is called to xlate # # content content_type ext [ext ...] ; maps ext to content_type # # encoding encoding_type ext [ext ...] ; maps ext to encoding_type # # # ############################################################################# ############################################################################# # # # Base Configuration: setup the loadpath and load the base modules # # # ############################################################################# load mime.pl dir.pl get.pl post.pl # base system loadpath $http_sdir/access # access-filter loadpath $http_sdir/auth # auth-basic auth-ripem loadpath $http_sdir/apps # calendar date finger fortune loadpath $http_sdir/util # cgi decode forms grep inc search setext wais # ---!!!--- configure logging in site.pl ---!!!--- ############################################################################# # # # Configuration options for various system features # # # ############################################################################# set admin webmaster@flora.ottawa.on.ca set support
$plexus{'admin'}
set autoindex true # auto-index directories? set strict_lock false # lock files before TX set revdns true # false to skip rev dns lookup (faster) set locking flock # flock or fcntl set relative disabled # enabled allows .. in path set connection_max 25 # 0 disables limit set timeout 90 # access timeout limit (secs) set pidfile plexus.pid # pid output file set mailer /usr/bin/mail # called: ``$mailer -s subject to'' set picky_dirs true # require $trailing_slash on dir URLs set redirects_ok true # use &redirect to fix them, else error # Path redirection and virtualization # Thanks to Martijn Koster load virtual.pl set preload_twiddles false # preload ~ directories #set twiddle_prefix home/ # could also be set to `~' (tilde) #set twiddle_export public_html # directory in ~ to export # virtualpath /searching/cusi.html /susi/cusi.html # virtualpath /welcome.html /index.html # redirect /crg/ http://www.crg.cs.nott.ac.uk/ # redirect /mac? http://victor:8001/mac-archive-find/grep? # Authentication; choose zero or one authentication type... #set basic-realm $hostname #load auth-basic.pl # enable basic authentication # ...ripem isn't really supported (no browsers support it yet anyway) #load auth-ripem.pl # enable RIPEM authentication # Access control set access-filter-config access-filter.conf # ...choose zero or one of the following: load access-filter.pl #load access-db.pl # just an example, not provided # Configure the directory browser set index index.html # default for directory access set homepage index.html # default homepage (what / maps to) hide $dir_header # $dir_header is from plexus.conf hide $dir_footer # $dir_footer is from plexus.conf hide .cache hide .cache+ hide .gopher hide .mailfilter hide .message hide .motd hide .tmp hide .profile # This is obsolete now that dir.pl uses "fileglob's" instead of regexps # set perlexp http://www.cis.ohio-state.edu:85/info/perl.info,Regular%20Expressions # Mapper Config # ``file'' is require'd before calling ``function''. # For better performance, use ``load file'' to preload the functions. # # topdir file function # -------------- -------------- ------------------------------------- map __get_default__ dir.pl &retrieve($path, $query) map __post_default__ post.pl &post'poster($path, $query) # CGI interface #load cgi.pl #map cgi-bin cgi.pl &cgi'cgi($top,$rest,$query) # if you want the actual binaries to live somewhere else just # specify that path instead of using $top directly. load freeport_gateway.pl map freeport freeport_gateway.pl &do_freeport($rest, $query) load pattern.pl map pattern pattern.pl &do_filepattern($rest, $query) # Help for dealing with forms (these accept both GET and POST forms) #load forms.pl # ...this will email a formatted version of the form #map form-admin forms.pl &forms'emailto($top, $rest, $query, $main'plexus{'admin'}, "Feedback") # ...this can be helpful in testing new forms #map form-test forms.pl &forms'emailto($top, $rest, $query, undef, "Generic Test Form") # Demos: #set faces_path faces/local:faces/xface:faces/facedir:faces/facesaver:faces/logos load finger.pl map finger finger.pl &do_finger($rest, $query, "finger/finger-cover.html") #################################################################### load date.pl map date date.pl &do_date($query) #################################################################### #load fortune.pl #map fortune fortune.pl &do_fortune($rest, $query) #################################################################### load calendar.pl map calendar calendar.pl &do_calendar($rest, $query) #################################################################### #load decode.pl # image manipulation (preload) #set decode_config map.conf # top level decode config file #map decode-walk decode.pl &do_decode($path, $query) #################################################################### #load search.pl # directory grep'er (preload) #map info search.pl &do_search($path, $query, "Info") #map login search.pl &do_search($path, $query, "Login") #################################################################### #loadpath $http_sdir/bookmark #load bookmark.pl # bookmark navigation (preload) #map bookmark bookmark.pl &do_bookmark($path, $query) #################################################################### #loadpath $http_sdir/../bsdi-man #load bsdi-man.pl #map bsdi-man bsdi-man.pl &do_bsdi_man($top, $rest, $query) # Contributed stuff -- check the source file for local customization # You are basically on your own for these: #loadpath $http_sdir/contrib #load oraplex.pl #map oracle oraplex.pl &do_oracle($path, $query, $version) #load neuro.pl #map neuroprose neuro.pl &gen_neuroprose($query) #load sunman.pl #map sunman sunman.pl &man_handler($rest, $query) #load siks.pl #??? I don't have an example for siks, sorry ??? ############################################################################# # # # Format Translations # # # # Translator From To # ############################################################################# #load setext.pl # must preload translators #translate setext'html text/x-setext text/html #load inc.pl # must preload translators #translate inc'html text/x-xhtml text/html ############################################################################# # # # ``content'' defines the lookup table for the file extension to # # MIME content-type mapping. You probably don't need to configure # # anything below here unless you aren't happy with the default mappings # # # ############################################################################# # Unknown data gets one of these types based on a simple evaluation function content text/plain __text__ content application/octet-stream __binary__ # Local Content-Type Extensions: content www/reply www content image/jpeg jfif JFIF # MIME Content-Type reference # The filename suffixes are case sensitive # This list conforms to http://www.bsdi.com/HTTP:TNG/MIME-ClientProfile.html # Content-types with no extensions are ignored, but supplied for reference content application/activemessage content application/andrew-inset # Andrew-inset content application/applefile content application/atomicmail # Atomicmail content application/dca-rft # IBM Doc Content Arch content application/dec-dx # Digital Doc Transfer content application/mac-binhex40 content application/macwriteii content application/msword content application/news-message-id # RFC 1036 content application/news-transmission # RFC 1036 content application/octet-stream bin # Uninterpreted Binary Data content application/oda oda content application/pdf pdf content application/postscript ai eps ps # PostScript content application/remote-printing # RFC 1486 content application/rtf rtf # RTF content application/slate # Slate content application/wita # Wang Info Transfer content application/wordperfect5.1 content application/x-csh csh # CSH Script (major danger) content application/x-dvi dvi # TeX DVI content application/x-hdf hdf # NCSA HDF data file content application/x-latex latex # LaTeX Source content application/x-netcdf nc cdf # Unidata netCDF data file content application/x-sh sh # SH Script (major danger) content application/x-tcl tcl # TCL Script (major danger) content application/x-tex tex # TeX Source content application/x-texinfo textinfo texi # Texinfo content application/x-troff t tr roff # Troff content application/x-troff-man man # Troff w/MAN Macros content application/x-troff-me me # Troff w/ME Macros content application/x-troff-ms ms # Troff w/MS Macros content application/x-wais-source src # WAIS Source content application/zip zip # PKZIP content application/x-bcpio bcpio # Old Binary CPIO content application/x-cpio cpio # IEEE Std1003.2 (``POSIX'') CPIO content application/x-gtar gtar # Gnu Tar content application/x-shar shar # Sh Shar content application/x-sv4cpio sv4cpio # SVR4 CPIO content application/x-sv4crc sv4crc # SVR4 CPIO w/CRC content application/x-tar tar # 4.3BSD Tar content application/x-ustar ustar # IEEE Std1003.2 (``POSIX'') Tar content audio/basic au snd # 8-bit u-law [PCM] / 8000 Hz content audio/x-aiff aif aiff aifc content audio/x-wav wav # MS Windows+ WAVE format content image/gif gif # Graphics Interchange Format content image/ief ief # Image Exchange Format content image/jpeg jpeg jpg jpe content image/tiff tiff tif # Tagged Image File Format content image/x-cmu-raster ras content image/x-portable-anymap pnm # PBM Anymap Format content image/x-portable-bitmap pbm # PBM Bitmap Format content image/x-portable-graymap pgm # PBM Graymap Format content image/x-portable-pixmap ppm # PBM Pixmap Format content image/x-rgb rgb content image/x-xbitmap xbm # X Bitmaps content image/x-xpixmap xpm # X Pixmap format content image/x-xwindowdump xwd # X Window Dump (xwd) content message/external-body content message/news content message/partial content message/rfc822 content multipart/alternative content multipart/appledouble content multipart/digest content multipart/mixed content multipart/parallel content text/x-xhtml xhtml # HTML + content text/html html # HTML content text/plain txt # Plain Text content text/richtext rtx # MIME Richtext format content text/tab-separated-values tsv # Tab Separated Values content text/x-setext etx # Structure Enchanced Text content video/mpeg mpeg mpg mpe # Motion Picture Experts Group content video/quicktime qt mov # QuickTime content video/x-msvideo avi # Microsoft Video for Windows content video/x-sgi-movie movie # SGI "movieplayer" movie content video/flc flc # Flic files content video/fli fli # Flic files # Encodings Supported encoding x-uuencode uu UU encoding x-hqx hqx HQX # Mac compressed encoding x-gzip gz GZ encoding x-pack z encoding x-compress Z