mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
109 lines
2.6 KiB
TOML
109 lines
2.6 KiB
TOML
[[server]]
|
|
name = "localhost"
|
|
host = "127.0.0.1"
|
|
port = 8080
|
|
body_size_limit = 100
|
|
[server.error_page]
|
|
403 = "www/def/errorFolder/error_403.html"
|
|
404 = "www/def/errorFolder/error_404.html"
|
|
405 = "www/def/errorFolder/error_405.html"
|
|
[[server.location]]
|
|
location = "/"
|
|
root = "www/def/"
|
|
methods = ["GET"]
|
|
autoindex = true
|
|
directory_file = "index.html"
|
|
[[server.location]]
|
|
location = "/put_file"
|
|
root = "www/def/upload"
|
|
body_size_limit = 1000000000
|
|
methods = ["PUT", "GET"]
|
|
autoindex = true
|
|
upload_dir = "www/def/upload/"
|
|
upload_accept = true
|
|
[[server.location]]
|
|
location = "/delete_file"
|
|
root = "www/def/upload"
|
|
methods = ["DELETE"]
|
|
[[server.location]]
|
|
location = "/docs"
|
|
root = "www/def/docs"
|
|
methods = ["GET"]
|
|
autoindex = true
|
|
[[server.location]]
|
|
location = "/document"
|
|
redirect = ["301", "http://localhost:8080/docs/$request_file"]
|
|
[[server.location]]
|
|
location = "/cgi-bin"
|
|
root = "www/def/script"
|
|
methods = ["GET", "POST"]
|
|
directory_file = "cgi_default.html"
|
|
[[server.location]]
|
|
location = "*.php"
|
|
cgi_pass = "/bin/php-cgi"
|
|
[[server.location]]
|
|
location = "/script"
|
|
redirect = ["301", "http://localhost:8080/cgi-bin/$request_file"]
|
|
[[server.location]]
|
|
location = "*.jpeg"
|
|
root = "www/def/images/jpegImg"
|
|
methods = ["GET"]
|
|
[[server.location]]
|
|
location = "*.png"
|
|
root = "www/def/images/pngImg"
|
|
methods = ["GET"]
|
|
[[server]]
|
|
name = "pohek1.org"
|
|
host = "127.0.0.1"
|
|
port = 8080
|
|
body_size_limit = 100
|
|
[server.error_page]
|
|
404 = "www/def/errorFolder/error_404.html"
|
|
[[server.location]]
|
|
location = "/"
|
|
root = "www/def/"
|
|
methods = ["GET"]
|
|
directory_file = "index.html"
|
|
[[server.location]]
|
|
location = "/cgi-bin"
|
|
root = "www/def/script"
|
|
methods = ["GET", "POST"]
|
|
directory_file = "cgi_default.html"
|
|
[[server.location]]
|
|
location = "*.php"
|
|
cgi_pass = "/bin/php-cgi"
|
|
[[server.location]]
|
|
location = "/script"
|
|
redirect = ["301", "http://localhost:8080/cgi-bin"]
|
|
[[server]]
|
|
name = "pohek2.org"
|
|
host = "127.0.0.1"
|
|
port = 8081
|
|
body_size_limit = 100000000
|
|
[[server.location]]
|
|
location = "/"
|
|
root = "www/tester/"
|
|
methods = ["GET"]
|
|
autoindex = true
|
|
directory_file = "index.html"
|
|
[[server.location]]
|
|
location = "/put_test"
|
|
root = "www/tester/"
|
|
methods = ["PUT"]
|
|
autoindex = true
|
|
upload_accept = true
|
|
upload_dir = "www/tester/upload_here/"
|
|
[[server.location]]
|
|
location = "*.bla"
|
|
cgi_pass = "ubuntu_cgi_tester"
|
|
[[server.location]]
|
|
location = "/post_body"
|
|
root = "www/tester/"
|
|
methods = ["POST"]
|
|
body_size_limit = 100
|
|
[[server.location]]
|
|
location = "/directory"
|
|
methods = ["GET"]
|
|
root = "www/tester/YoupiBanane/"
|
|
directory_file = "youpi.bad_extension"
|