]>
Commit | Line | Data |
---|---|---|
ccb8f06d | 1 | User http |
2 | StayRoot On | |
3 | Control { | |
4 | ScriptUser http | |
5 | } | |
6 | PIDFile /var/run/mathopd.pid | |
7 | Log /var/log/mathopd/mathopd.log | |
8 | ErrorLog /var/log/mathopd/error.log | |
9 | Control { | |
10 | ChildLog /var/log/mathopd/childlog | |
11 | } | |
12 | ||
13 | Tuning { | |
14 | NumConnections 24 | |
15 | BufSize 12288 | |
16 | InputBufSize 12288 | |
17 | } | |
18 | ||
19 | LogFormat { | |
20 | Ctime | |
21 | RemoteUser | |
22 | RemoteAddress | |
23 | RemotePort | |
24 | ServerName | |
25 | Method | |
26 | URI | |
27 | QueryString | |
28 | Version | |
29 | Status | |
30 | ContentLength | |
31 | BytesRead | |
32 | BytesWritten | |
33 | } | |
34 | ||
35 | LogGMT On | |
36 | ||
37 | Control { | |
38 | Types { | |
39 | text/html { html } | |
40 | image/gif { gif } | |
41 | image/jpeg { jpg } | |
42 | text/css { css } | |
43 | application/octet-stream { * } | |
44 | } | |
45 | Specials { | |
46 | Dump { /dump } | |
47 | } | |
48 | IndexNames { index.html } | |
49 | # Error404File /home/boland/404.html | |
50 | } | |
51 | ||
52 | Server { | |
53 | Virtual { | |
54 | AnyHost | |
55 | # | |
56 | # A control block that has both an alias and a location keyword defines what | |
57 | # is generally known as a 'virtual directory'. When mathopd converts URLs | |
58 | # to pathnames it scans these blocks until it matches the URL with what is | |
59 | # defined as the alias. Scanning stops as soon as a match is found (!) | |
60 | # A location with alias "/" is the virtual root. This alias always matches. | |
61 | # You must put the root before any other aliases in this file, otherwise | |
62 | # it will simply obscure the remaining aliases. | |
63 | # | |
64 | Control { | |
65 | Alias / | |
66 | Location /home/httpd/html | |
67 | } | |
68 | # | |
69 | # Here is an example of an old-fashioned 'cgi-bin' directory. | |
70 | # | |
71 | Control { | |
72 | Alias /cgi-bin | |
73 | Location /home/httpd/cgi-bin | |
74 | Specials { | |
75 | CGI { * } | |
76 | } | |
77 | } | |
78 | # | |
79 | # User directories work by substituting a login with the home directory | |
80 | # for that login, followed by whatever is defined as the location | |
81 | # so for example /~boland/ would be translated into /home/boland/public_html/ | |
82 | # (assuming that /home/boland is the home directory for user boland.) | |
83 | # | |
84 | # Note that if a user is not in the password file, mathopd will skip this | |
85 | # alias and try to match the URL with any remaining aliases. E.g. if 'cmj' | |
86 | # is a nonexisting user then /~cmj/ would translate into /home/boland/www/~cmj/ | |
87 | # | |
88 | # Password file lookups can be very slow! Use this feature at your own risk. | |
89 | # | |
90 | Control { | |
91 | Alias /~ | |
92 | Location public_html | |
93 | UserDirectory On | |
94 | } | |
95 | # | |
96 | # If you have users for whom you do not want to enable user directories | |
97 | # you can create an alias like the one below. Note that you must put | |
98 | # these underneath the alias that has the userdirectory keyword because | |
99 | # mathopd matches aliases from the bottom of the configuration upwards. | |
100 | # | |
101 | Control { | |
102 | Alias /~root | |
103 | Location /nosuchdirectory | |
104 | } | |
105 | } | |
106 | } | |
107 |