summaryrefslogtreecommitdiff
path: root/src/config/PARSING-config.txt
blob: 688d93ca1baef0427e5fb8596c2eb58af7f3bff9 (plain)
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
global verbosity 1
global read_timeout 60000
global index_file index.cgi index.html

content-type application/pdf .pdf
content-type text/plain .c .h .txt


domain example.com

nph-prefix nph-

redirect rickroll.html 307 https://www.youtube.com/watch?v=dQw4w9WgXcQ
redirect community/ 308 https://example.org/

cgi /cgi-bin/
nph /cgi-bin/nph/

cgi /some/script
nph /some/otherscript

noncgi /cgi-bin/file.html
noncgi /cgi-bin/directory

file-type /source/ text/plain
file-type /source/file.html text/html

basic-auth /protected.html
basic-auth /protected/


class	|	0	1	2	3	4
st\ev	|	\0	space	#	\n	other

START	|				P	np
00	|	END	SPACE	COMMENT	START	WORD

COMMENT	|				P
01	|	END	COMMENT	COMMENT	START	COMMENT

SPACE	|	P			P	np
02	|	END	SPACE	COMMENT	START	WORD

WORD	|	0P	0	p	0P	p
03	|	END	SPACE	WORD	START	WORD

END: 04
X: 05

states: 3 bits
actions: 4 bits

0x10	n	new word
0x20	p	push cur
0x40	0	push \0
0x80	P	process line