upstream changes (config)

This commit is contained in:
3lswear
2022-03-06 14:21:31 +03:00
parent c6e54a0c05
commit 1404478644

View File

@@ -13,102 +13,18 @@
methods = ["GET"] methods = ["GET"]
autoindex = true autoindex = true
directory_file = "index.html" 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]] [[server.location]]
body_size_limit = 1000000000 body_size_limit = 1000000000
location = "/cgi-bin" location = "/cgi-bin"
root = "www/def/script" root = "www/def/script"
methods = ["GET", "POST"] methods = ["GET", "POST"]
directory_file = "cgi_default.html" autoindex = true
[[server.location]] [[server.location]]
location = "*.php" location = "*.php"
cgi_pass = "/bin/php-cgi" cgi_pass = "/bin/php-cgi"
[[server.location]] [[server.location]]
location = "/script" location = "/script"
redirect = ["301", "http://localhost:8080/cgi-bin/$request_file"] redirect = ["301", "http://localhost:8080/cgi-bin/$request_file"]
#start /tomato
[[server.location]]
location = "/tomato/index.html"
root = "www/def/tomato/index.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/about.html"
root = "www/def/tomato/about.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/blog_post.html"
root = "www/def/tomato/blog_post.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/blog.html"
root = "www/def/tomato/blog.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/contact.html"
root = "www/def/tomato/contact.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/portfolio.html"
root = "www/def/tomato/portfolio.html"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/css"
root = "www/def/tomato/css"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/js"
root = "www/def/tomato/js"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato/images"
root = "www/def/tomato/images"
methods = ["GET", "POST"]
[[server.location]]
location = "/tomato"
redirect = ["301", "http://127.0.0.1:8080/tomato/index.html"]
[[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"
# autoindex = true
[[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]] [[server]]
name = "pohek2.org" name = "pohek2.org"
host = "127.0.0.1" host = "127.0.0.1"