mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-07-20 15:26:32 +02:00
「📝」 doc: exemples fixed example configs
This commit is contained in:
@ -6,9 +6,9 @@ host = "0.0.0.0"
|
|||||||
port = 8080
|
port = 8080
|
||||||
|
|
||||||
[server.error_pages]
|
[server.error_pages]
|
||||||
404 = "not_found.html"
|
|
||||||
401 = "unauthorized.html"
|
401 = "unauthorized.html"
|
||||||
402 = "uwu.html"
|
402 = "uwu.html"
|
||||||
|
404 = "not_found.html"
|
||||||
|
|
||||||
[server.location./]
|
[server.location./]
|
||||||
methods = { "GET" }
|
methods = { "GET" }
|
||||||
@ -20,13 +20,13 @@ client_max_body_size = "10M"
|
|||||||
methods = { "GET", "POST" }
|
methods = { "GET", "POST" }
|
||||||
root = "./api"
|
root = "./api"
|
||||||
upload_path = "./up"
|
upload_path = "./up"
|
||||||
cgi.go = "/bin/go"
|
cgi = { ".go" }
|
||||||
|
|
||||||
[server.location./redir]
|
[server.location./redir]
|
||||||
redirect = "https://kanel.ovh"
|
redirect = "https://kanel.ovh"
|
||||||
|
|
||||||
[serverr]
|
[serverr]
|
||||||
server_names = { "ptnnnn.local"}
|
server_names = { "testing.local"}
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
port = 9090
|
port = 9090
|
||||||
|
|
||||||
@ -37,4 +37,4 @@ port = 9090
|
|||||||
methods = { "GET", "DELETE" }
|
methods = { "GET", "DELETE" }
|
||||||
root = "/var/lib/docker/volumes/test_data/_data"
|
root = "/var/lib/docker/volumes/test_data/_data"
|
||||||
dirlist = false
|
dirlist = false
|
||||||
cgi.py = "/bin/python"
|
cgi.py = { ".py" }
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
log_file = "test.log"
|
log_file = "test.log"
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
# server_names = { "localhost", "2B5.local" }
|
|
||||||
host = "0.0.0.0"
|
host = "0.0.0.0"
|
||||||
port = 8080
|
port = 8080
|
||||||
|
|
||||||
[server.error_pages]
|
[server.error_pages]
|
||||||
404 = "exemples/err_pages/not_found.html"
|
|
||||||
401 = "unauthorized.html"
|
401 = "unauthorized.html"
|
||||||
402 = "uwu.html"
|
402 = "uwu.html"
|
||||||
|
404 = "exemples/err_pages/not_found.html"
|
||||||
|
|
||||||
[server.location./]
|
[server.location./]
|
||||||
methods = { "GET", "POST" }
|
methods = { "GET", "POST" }
|
||||||
@ -20,7 +19,7 @@ cgi = { ".py", ".go" }
|
|||||||
|
|
||||||
[server.location./api]
|
[server.location./api]
|
||||||
methods = { "GET", "POST" }
|
methods = { "GET", "POST" }
|
||||||
root = "/nfs/homes/mmoussou"
|
root = "/home/mmoussou"
|
||||||
upload_path = "/etc/webserv/up"
|
upload_path = "/etc/webserv/up"
|
||||||
cgi = { ".py", ".go" }
|
cgi = { ".py", ".go" }
|
||||||
|
|
||||||
@ -38,5 +37,3 @@ port = 9090
|
|||||||
methods = { "GET", "DELETE" }
|
methods = { "GET", "DELETE" }
|
||||||
root = "/var/lib/docker/volumes/test_data/_data"
|
root = "/var/lib/docker/volumes/test_data/_data"
|
||||||
dirlist = false
|
dirlist = false
|
||||||
cgi.py = "/bin/python"
|
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ port = 2727
|
|||||||
|
|
||||||
[server.location./]
|
[server.location./]
|
||||||
root = "./exemples/webpage"
|
root = "./exemples/webpage"
|
||||||
upload_path = "/home/yosyo/test"
|
upload_path = "/home/mmoussou/test"
|
||||||
|
dirlist = true
|
||||||
methods = { "GET", "POST", "DELETE" }
|
methods = { "GET", "POST", "DELETE" }
|
||||||
cgi = { ".py"}
|
cgi = { ".py"}
|
||||||
|
Reference in New Issue
Block a user