]> git.pld-linux.org Git - packages/mathopd.git/blame - mathopd.conf
Release 6 (by relup.sh)
[packages/mathopd.git] / mathopd.conf
CommitLineData
4c5c5d7f 1Umask 026
ccb8f06d 2
3Tuning {
4c5c5d7f 4 NumConnections 64
ccb8f06d 5 BufSize 12288
4c5c5d7f 6 InputBufSize 2048
7 ScriptBufSize 4096
8 NumHeaders 100
9 Timeout 60
10 ScriptTimeout 60
ccb8f06d 11}
12
61cf7097 13User http
4c5c5d7f 14StayRoot On
15
16PIDFile /var/run/mathopd.pid
17Log /var/log/mathopd/mathopd.log
18ErrorLog /var/log/mathopd/error.log
19
ccb8f06d 20LogFormat {
21 Ctime
22 RemoteUser
23 RemoteAddress
24 RemotePort
25 ServerName
26 Method
27 URI
28 QueryString
29 Version
30 Status
31 ContentLength
32 BytesRead
33 BytesWritten
34}
ccb8f06d 35LogGMT On
36
37Control {
e235ad32 38 RunScriptsAsOwner Off
39 ScriptUser nobody
4c5c5d7f 40 ChildLog /var/log/mathopd/childlog
ccb8f06d 41 Types {
42 text/html { html }
4c5c5d7f 43 text/plain { txt }
ccb8f06d 44 image/gif { gif }
45 image/jpeg { jpg }
46 text/css { css }
47 application/octet-stream { * }
48 }
49 Specials {
50 Dump { /dump }
4c5c5d7f 51 CGI { cgi }
52 Imagemap { map }
53 Redirect { url }
54 }
55 External {
56 /usr/bin/php { php }
ccb8f06d 57 }
58 IndexNames { index.html }
e235ad32 59 AutoIndexCommand /usr/sbin/mathopd-dir_cgi
ccb8f06d 60}
61
62Server {
63 Virtual {
64 AnyHost
65#
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.
4c5c5d7f 73#
74# The '*' in the location is expanded to the name of the Host header
75# that is submitted by the client.
76#
ccb8f06d 77 Control {
78 Alias /
4c5c5d7f 79 Location /home/boland/*
ccb8f06d 80 }
81#
82# Here is an example of an old-fashioned 'cgi-bin' directory.
83#
84 Control {
85 Alias /cgi-bin
4c5c5d7f 86 Location /home/boland/cgi-bin
ccb8f06d 87 Specials {
88 CGI { * }
89 }
90 }
91#
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.)
96#
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/
100#
101# Password file lookups can be very slow! Use this feature at your own risk.
102#
103 Control {
104 Alias /~
105 Location public_html
106 UserDirectory On
107 }
108#
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.
113#
114 Control {
115 Alias /~root
116 Location /nosuchdirectory
117 }
4c5c5d7f 118 Control {
119 Alias /doc
120 Location /usr/share/doc/handbook
121 }
122#
123# Example of a redirect
124#
125 Control {
126 Alias /secure
127 Location https://an.example
128 }
ccb8f06d 129 }
130}
131
This page took 0.061761 seconds and 4 git commands to generate.