File: syntax.txt

package info (click to toggle)
mathopd 1.5p6-1.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 464 kB
  • ctags: 649
  • sloc: ansic: 6,270; sh: 98; makefile: 76
file content (141 lines) | stat: -rw-r--r-- 2,937 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
A configuration file for mathopd consists of zero or more 'items',
possibly mixed with comment text.

An item is a configuration keyword followed by zero or one arguments,
as indicated by the syntax below.

I have taken the liberty of introducing some meta-concepts to make
the syntax more readable.

When you read the phrase "X-block", please replace it with the following.

X-block: "{" X-items "}"

X-items:
	<nothing>
	X-item X-items

Keywords and arguments are separated by whitespace, that is, spaces,
tab characters, carriage returns, or line feeds.

A string is anything enclosed in double quotes ("). The quotes can be
omitted if the string is actually just a single word. To include the
double quote character itself in a string, precede the quote with a
backslash ('\').

An integer is represented using the normal 'C' conventions: '0x' in
front indicates a hexadecimal number, '0' in front indicates octal.

The '#' character, when not used inside a string, is considered the
beginning of comment text. A comment lasts until the next line.
Comments are ignored when the input file is parsed.

Configuration File Syntax
--------------------------------

configuration-item:
	"RootDirectory" string
	"CoreDirectory" string
	"Umask" integer
	"StayRoot" flag
	"User" string
	"PIDFile" string
	"Log" string
	"ErrorLog" string
	"Tuning" tuning-block
	"Control" control-block
	"Server" server-block
	"LogFormat" logformat-block
	"LogGMT" flag
	"Virtual" virtual-block

tuning-item:
	"Timeout" integer
	"BufSize" integer
	"InputBufSize" integer
	"NumConnections" integer
	"AcceptMulti" flag
	"NumHeaders" integer
	"ScriptTimeout" integer
	"ScriptBufSize" integer
	"Clobber" flag
	"Wait" integer

control-item:
	"Location" string
	"Alias" string
	"PathArgs" flag
	"IndexNames" string-block
	"Access" access-block
	"Clients" client-block
	"Types" type-block
	"Specials" type-block
	"External" type-block
	"Admin" string
	"Realm" string
	"UserFile" string
	"Error401File" string
	"Error403File" string
	"Error404File" string
	"EncryptedUserFile" flag
	"ChildLog" string
	"Export" string-block
	"ExactMatch" flag
	"ScriptUser" string
	"RunScriptsAsOwner" string
	"AllowDotfiles" flag
	"UserDirectory" flag
	"PutEnv" string-block
	"ExtraHeaders" string-block
	"PathInfo" flag
	"AutoIndexCommand" string
	"SanitizePath" flag

server-item:
	"Port" integer
	"Address" address
	"Virtual" virtual-block
	"Control" control-block
	"Backlog" integer

virtual-item:
	"Host" string
	"NoHost"
	"Control" control-block
	"AnyHost"

access-item:
	"Allow" network
	"Deny" network

client-item:
	"Apply" network
	"NoApply" network

type-item:
	string string-block

logformat-item:
	"Ctime"
	"RemoteUser"
	"RemoteAddress"
	"RemotePort"
	"LocalAddress"
	"LocalPort"
	"ServerName"
	"Method"
	"Uri"
	"Version"
	"Status"
	"ContentLength"
	"Referer"
	"UserAgent"
	"BytesRead"
	"BytesWritten"
	"QueryString"
        "TimeTaken"
	"MicroTime"

flag:
	"On"
	"Off"