# diner - settings file.

# LogFile <logfile>
#
# Where to send the logoutput to.

LogFile /boot/home/log/diner.log

# Port <port>
#
# This are the ports on which diner should accept connections on.

Port 80
# Port 8080
# Port 1080

# MaxConnections <max>
#
# These are the maximum parallel connections.

MaxConnections 200

# We don't want diner to resolve hostnames. This will speed things a little bit
# up if you have problems with your DNS services, but all connecting hosts will
# be known by there IP addresses only!

DontResolveHostnames

# HostName <name>
#
# Name of the host running POW. Used for redirects, if no Host:-line is by the
# client provided. If this is not present, the hostname of the machine is
# "guessed", which should work fine, too :-) So this entry in the config is
# only a fallback for rare cases.

# HostName 127.0.0.1

# There are several parameters in every connection which may change the
# behaviour of POW reacting to it. To simplify configuration, it is possible to
# group several of those to a group. These groups can then be used later.
#
# Group <name> <filtername> <filterparam> <filter> ....
#
# This one defines a group where all connections with the host-parameter set to
# rappeldappel.ghb.fh-furtwangen.de are added to.

Group Stegemann.net	Host stegemann.net

# Remap <pattern> to <result>
#
# E.g. "Remap / /boot/HTML/" remaps any access to /boot/HTML/.... :
#
#	/index.html -> /boot/HTML/index.html
#	/www.be.com -> /boot/HTML/www.be.com
#
# Please note that trailing / from incoming requests are stripped _before_ the
# mapping! So don`t map /test to  /boot/HTML/test/. This might not work in all
# cases.
#
# A normal redirect will be performed silently by the server. If you set the
# keywords "permanent" or "temporary", the client will be informed that this
# page has moved either permanent or temporary to a different location.
#
# WARNING: If there is only ONE permanent or temporary mapping which applies to
#          a path, the whole REMAPPED path will be send as new path.
# WARNING_2: Mappings are recursive, except if you are using one of the
#            keywords "Permanent", "Temporary" or "Fixed".
#
#            (E.g. If you have
#
#                    "Remap /xxx  /boot/html/xxx" and 
#                    "Remap /     /boot/html/",
#
#             the path /xxx gets remapped to /boot/html/boot/html/xxx, because
#             BOTH remappings will be applied. If you set the "Fixed" keyword
#             for a rule, the remapping procedure will end if that rule is
#             applied.)
#
# HINT: It`s legal to use a complete URL if permanent or temporary remapping is
#       used. (E.g. Remap /   http://xxx permanent will remap every access to a
#       different system.
#
# Mappings will be applied top down!

Remap	/~pst			/boot/home/www/Home/pst			Fixed

Remap	/			/Stegemann/			Group	stegemann.net

# This one is important, it remaps every acces to /boot/home/HTML, so any
# access goes to a point somewhere down in this hierarchy. NEVER make this a
# temporary or permanent redirect!

Remap	/			/boot/home/www/

# IndexFile <file>
#
# This specifies the files to search for if a path name is given.

IndexFile       index.html
IndexFile       index.htm

# AddOn <AddOn name> MIMEType <mime-type>
#
# This specifies which AddOn should be used for which type of file.
# If no addon is specified for a file type, the file will be sent as is.

AddOn	CGI	MIMEType	application/x-vnd.Stegemann-CGI

AddOn	InlineModuleInvocation	MIMEType	text/html

# These are the full-text errormessages to send on errors. These should be in
# HTML and not too big. These paths are NOT remapped.

# Send this if there is no matching errormessage.

OnError /boot/home/www/diner/error_default.html

# These are messages for specific errors.

OnError400 /boot/home/www/diner/error_400.html
OnError404 /boot/home/www/diner/error_404.html