From 7c6d0783f170ac7c01df22a27c19af5a95585ed4 Mon Sep 17 00:00:00 2001 From: 3lswear Date: Thu, 13 Jan 2022 09:24:36 +0300 Subject: [PATCH] fix location syntax --- config/example.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/example.toml b/config/example.toml index f148367..3246478 100644 --- a/config/example.toml +++ b/config/example.toml @@ -4,7 +4,7 @@ port = 8080 error_page = "error.html" body_size_limit = 10 - [[location]] + [[server.location]] location = "/" # redirection ??? root = "/var/www/html/jopa.html" @@ -14,7 +14,7 @@ upload_accept = true upload_dir = "/var/www/html/upload" - [[location]] + [[server.location]] location = "/secret/" root = "/var/www/html/secret.html" methods = ["GET"]