diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-08-23 15:36:55 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-08-23 15:36:55 +0000 |
| commit | e6ada0b74352f77124a682d98c6d842fd5c44b45 (patch) | |
| tree | 77e406393684f15dfa4aa8e41f16ec3d27e90286 /examples/tipidee.conf | |
| parent | 8d8edcd55e8601b888bf310c813d26fc328c9eaf (diff) | |
| download | tipidee-e6ada0b74352f77124a682d98c6d842fd5c44b45.tar.gz | |
Add some doc
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/tipidee.conf')
| -rw-r--r-- | examples/tipidee.conf | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/examples/tipidee.conf b/examples/tipidee.conf new file mode 100644 index 0000000..f75a9cc --- /dev/null +++ b/examples/tipidee.conf @@ -0,0 +1,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/ |
