blob: f75a9cc91c6be013fd7a8465c608563bd429c924 (
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
|
### Global definitions
# After 1 minute without a new request, exit
global read_timeout 60000
# If the client fails to read a response for 1 minute, exit
global write_timeout 60000
# If a CGI script takes more than 10s to run, kill it and respond 504 instead
global cgi_timeout 10000
# Serve .ini and .cfg files as plain text
content-type text/plain .ini .cfg
### Definitions for the example.com virtual domain
domain example.com
# CGI scripts called nph-foobar are considered non-parsed-headers
nph-prefix nph-
# CGI scripts live under /cgi-bin
cgi /cgi-bin/
# Serve http://example.com/README as plain text
file-type /README text/plain
# Redirect http://example.com/rickroll to a fan favorite video.
# Make it temporary to avoid revealing the trick in the client.
redirect /rickroll 307 https://www.youtube.com/watch?v=dQw4w9WgXcQ
# Permanently redirect http://example.com/community/foobar... requests
# to https://example.org/foobar...
redirect /community/ 308 https://example.org
### Definitions for the example.org virtual domain
domain example.org
nph-prefix nph-
cgi /cgi-bin/
|