16 PIDFile /var/run/mathopd.pid
17 Log /var/log/mathopd/mathopd.log
18 ErrorLog /var/log/mathopd/error.log
40 ChildLog /var/log/mathopd/childlog
47 application/octet-stream { * }
58 IndexNames { index.html }
59 AutoIndexCommand /usr/sbin/mathopd-dir_cgi
66 # A control block that has both an alias and a location keyword defines what
67 # is generally known as a 'virtual directory'. When mathopd converts URLs
68 # to pathnames it scans these blocks until it matches the URL with what is
69 # defined as the alias. Scanning stops as soon as a match is found (!)
70 # A location with alias "/" is the virtual root. This alias always matches.
71 # You must put the root before any other aliases in this file, otherwise
72 # it will simply obscure the remaining aliases.
74 # The '*' in the location is expanded to the name of the Host header
75 # that is submitted by the client.
79 Location /home/boland/*
82 # Here is an example of an old-fashioned 'cgi-bin' directory.
86 Location /home/boland/cgi-bin
92 # User directories work by substituting a login with the home directory
93 # for that login, followed by whatever is defined as the location
94 # so for example /~boland/ would be translated into /home/boland/public_html/
95 # (assuming that /home/boland is the home directory for user boland.)
97 # Note that if a user is not in the password file, mathopd will skip this
98 # alias and try to match the URL with any remaining aliases. E.g. if 'cmj'
99 # is a nonexisting user then /~cmj/ would translate into /home/boland/www/~cmj/
101 # Password file lookups can be very slow! Use this feature at your own risk.
109 # If you have users for whom you do not want to enable user directories
110 # you can create an alias like the one below. Note that you must put
111 # these underneath the alias that has the userdirectory keyword because
112 # mathopd matches aliases from the bottom of the configuration upwards.
116 Location /nosuchdirectory
120 Location /usr/share/doc/handbook
123 # Example of a redirect
127 Location https://an.example