diff options
Diffstat (limited to 'config.example')
| -rw-r--r-- | config.example | 99 |
1 files changed, 48 insertions, 51 deletions
diff --git a/config.example b/config.example index d8a946b..06a9c26 100644 --- a/config.example +++ b/config.example @@ -12,60 +12,57 @@ logs { # ERROR stderr 144 } -# config specific to the worker -worker { - root /home/user/server/ # where the server will look for files, basically files prefix - bundle /ca/bundle/location # location of ca bundle - cert ssl/cert.pem # location of certificate - key ssl/key.pem #location of private key - http # turns https off - # https # turns https on - ipv4 # ipv4 enabled - ipv6 # ipv6 enabled - rewrites { - / test/monch.gif - /media/* localc/media/$1 - /* test/$1 - } - # rewrites rewrites.txt # file from where to read rewrites - types mime.types # file from where to read types - types { - # reading types from config directly - # description extension - type/ext ext - } +root /home/user/server/ # where the server will look for files, basically files prefix +bundle /ca/bundle/location # location of ca bundle +cert ssl/cert.pem # location of certificate +key ssl/key.pem #location of private key +http # turns https off +# https # turns https on +ipv4 # ipv4 enabled +ipv6 # ipv6 enabled +rewrites { + / test/monch.gif + /media/* localc/media/$1 + /* test/$1 +} +# rewrites rewrites.txt # file from where to read rewrites +types mime.types # file from where to read types +types { + # reading types from config directly + # description extension + type/ext ext +} - # HTTP method rules - # not implemented yet - # GET { - # # request document to server code to server - # / homepage.html 200 - # /help help.html 200 - # /* 404.html 404 - # } +# HTTP method rules +# not implemented yet +# GET { +# # request document to server code to server +# / homepage.html 200 +# /help help.html 200 +# /* 404.html 404 +# } - # same but for different method - # POST { - # # etc - # } +# same but for different method +# POST { +# # etc +# } - # custom methods - # * { - # /* / 501 - # } +# custom methods +# * { +# /* / 501 +# } - # HTTP response codes - # codes { - # # code code text - # 200 "OK" - # 404 "Not Found" - # 418 "I'm a teapot" - # 501 "Not implemented" - # # custom codes - # 711 "Double gulp cup" - # } +# HTTP response codes +# codes { +# # code code text +# 200 "OK" +# 404 "Not Found" +# 418 "I'm a teapot" +# 501 "Not implemented" +# # custom codes +# 711 "Double gulp cup" +# } - # same but can also be gotten from file - # codes codes.txt -} +# same but can also be gotten from file +# codes codes.txt |
