]> git.pld-linux.org Git - packages/mathopd.git/blob - mathopd.conf
Release 6 (by relup.sh)
[packages/mathopd.git] / mathopd.conf
1 Umask 026
2
3 Tuning {
4         NumConnections 64
5         BufSize 12288
6         InputBufSize 2048
7         ScriptBufSize 4096
8         NumHeaders 100
9         Timeout 60
10         ScriptTimeout 60
11 }
12
13 User http
14 StayRoot On
15
16 PIDFile /var/run/mathopd.pid
17 Log /var/log/mathopd/mathopd.log
18 ErrorLog /var/log/mathopd/error.log
19
20 LogFormat {
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 }
35 LogGMT On
36
37 Control {
38         RunScriptsAsOwner Off
39         ScriptUser nobody
40         ChildLog /var/log/mathopd/childlog
41         Types {
42                 text/html { html }
43                 text/plain { txt }
44                 image/gif { gif }
45                 image/jpeg { jpg }
46                 text/css { css }
47                 application/octet-stream { * }
48         }
49         Specials {
50                 Dump { /dump }
51                 CGI { cgi }
52                 Imagemap { map }
53                 Redirect { url }
54         }
55         External {
56                 /usr/bin/php { php }
57         }
58         IndexNames { index.html }
59         AutoIndexCommand  /usr/sbin/mathopd-dir_cgi
60 }
61
62 Server {
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.
73 #
74 # The '*' in the location is expanded to the name of the Host header
75 # that is submitted by the client.
76 #
77                 Control {
78                         Alias /
79                         Location /home/boland/*
80                 }
81 #
82 # Here is an example of an old-fashioned 'cgi-bin' directory.
83 #
84                 Control {
85                         Alias /cgi-bin
86                         Location /home/boland/cgi-bin
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                 }
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                 }
129         }
130 }
131
This page took 0.107255 seconds and 3 git commands to generate.