more complex

This commit is contained in:
3lswear
2022-01-19 09:32:32 +03:00
parent 73d9dd8feb
commit 6f05954fa4

View File

@@ -1,12 +1,34 @@
[[server]]
a = "b"
name = "jopa"
port = 6969
ip = "127.0.0.1"
methods = ["GET", "POST", "HEAD"]
name = "serv1"
host = "127.0.0.1"
port = 8080
error_page = "error.html"
body_size_limit = 10
[[server.location]]
location = "/"
root = "/var/www/html/jopa.html"
methods = ["GET", "POST"]
directory_list = true
directory_fallback = "its_a_directory.html"
upload_accept = true
upload_dir = "/var/www/html/upload"
[[server.location]]
location = "/secret/"
root = "/var/www/html/secret.html"
methods = ["GET"]
directory_list = false
directory_fallback = "oops.html"
[[server]]
name = "jopaserv 2"
port = 1337
ip = "127.0.0.1"
methods = ["GET", "POST" ]
name = "2222"
host = "10.0.0.1"
port = 8081
error_page = "error2.html"
body_size_limit = 10
[[server.location]]
location = "/root2/"
root = "/var/www/html/jopa.html"
methods = ["GET", "POST"]
directory_list = true
directory_fallback = "its_a_directory.html"
upload_accept = false
upload_dir = "/var/www/html/upload"