mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 22:18:45 +02:00
42 lines
765 B
TOML
42 lines
765 B
TOML
log_file = "test.log"
|
|
|
|
[server]
|
|
server_names = { "localhost", "2B5.local" }
|
|
host = "0.0.0.0"
|
|
port = 8080
|
|
|
|
[server.error_pages]
|
|
404 = "not_found.html"
|
|
401 = "unauthorized.html"
|
|
402 = "uwu.html"
|
|
|
|
[server.location./]
|
|
methods = { "GET" }
|
|
root = "/sgoinfre/goinfre/Perso/mmoussou"
|
|
dirlist = true
|
|
client_max_body_size = "10M"
|
|
index = "banger.html"
|
|
|
|
[server.location./api]
|
|
methods = { "GET", "POST" }
|
|
root = "/nfs/homes/mmoussou"
|
|
upload_path = "/etc/webserv/up"
|
|
cgi.go = "/bin/go"
|
|
|
|
[server.location./redir]
|
|
redirect = "https://kanel.ovh"
|
|
|
|
[default]
|
|
host = "127.0.0.1"
|
|
port = 9090
|
|
|
|
[default.error_pages]
|
|
404 = "existepasfd***.html"
|
|
|
|
[default.location./]
|
|
methods = { "GET", "DELETE" }
|
|
root = "/var/lib/docker/volumes/test_data/_data"
|
|
dirlist = false
|
|
cgi.py = "/bin/python"
|
|
|