From 44a3065ea87259221a877ec2a90b1a5c2685d9c5 Mon Sep 17 00:00:00 2001 From: Talyx Date: Thu, 24 Feb 2022 18:10:17 +0300 Subject: [PATCH] add: besmart and tomato site in config --- config/def.toml | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/config/def.toml b/config/def.toml index 6f43f46..6e8a586 100644 --- a/config/def.toml +++ b/config/def.toml @@ -44,14 +44,46 @@ [[server.location]] location = "/script" redirect = ["301", "http://localhost:8080/cgi-bin/$request_file"] + #start /tomato [[server.location]] - location = "*.jpeg" - root = "www/def/images/jpegImg" - methods = ["GET"] + location = "/tomato/index.html" + root = "www/def/tomato/index.html" + methods = ["GET", "POST"] [[server.location]] - location = "*.png" - root = "www/def/images/pngImg" - methods = ["GET"] + 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" @@ -64,6 +96,7 @@ root = "www/def/" methods = ["GET"] directory_file = "index.html" + # autoindex = true [[server.location]] location = "/cgi-bin" root = "www/def/script"