From fef26aee5b99a3260955a6f63053498908e5831a Mon Sep 17 00:00:00 2001 From: Me Date: Wed, 3 Aug 2022 18:56:34 +0200 Subject: [PATCH] getting ready to pull --- default.config | 10 +++++++++- srcs/{ => config}/ConfigParser.cpp | 0 srcs/{ => config}/ConfigParser.hpp | 0 srcs/{ => config}/ConfigParserPost.cpp | 0 srcs/{ => config}/ConfigParserUtils.cpp | 0 srcs/{ => config}/LocationConfig.hpp | 0 srcs/{ => config}/ServerConfig.hpp | 0 7 files changed, 9 insertions(+), 1 deletion(-) rename srcs/{ => config}/ConfigParser.cpp (100%) rename srcs/{ => config}/ConfigParser.hpp (100%) rename srcs/{ => config}/ConfigParserPost.cpp (100%) rename srcs/{ => config}/ConfigParserUtils.cpp (100%) rename srcs/{ => config}/LocationConfig.hpp (100%) rename srcs/{ => config}/ServerConfig.hpp (100%) diff --git a/default.config b/default.config index a3de0b3..f0d3a68 100644 --- a/default.config +++ b/default.config @@ -10,8 +10,16 @@ server { # client_body_limit 400; index index.html; # this is another comment - root ./www/; + root /website; allow_methods GET; + + +# ok in theory if one were to go to /test they would get the index in www +# as opposed to the one in /website... + location /test { + root /www; + } + } diff --git a/srcs/ConfigParser.cpp b/srcs/config/ConfigParser.cpp similarity index 100% rename from srcs/ConfigParser.cpp rename to srcs/config/ConfigParser.cpp diff --git a/srcs/ConfigParser.hpp b/srcs/config/ConfigParser.hpp similarity index 100% rename from srcs/ConfigParser.hpp rename to srcs/config/ConfigParser.hpp diff --git a/srcs/ConfigParserPost.cpp b/srcs/config/ConfigParserPost.cpp similarity index 100% rename from srcs/ConfigParserPost.cpp rename to srcs/config/ConfigParserPost.cpp diff --git a/srcs/ConfigParserUtils.cpp b/srcs/config/ConfigParserUtils.cpp similarity index 100% rename from srcs/ConfigParserUtils.cpp rename to srcs/config/ConfigParserUtils.cpp diff --git a/srcs/LocationConfig.hpp b/srcs/config/LocationConfig.hpp similarity index 100% rename from srcs/LocationConfig.hpp rename to srcs/config/LocationConfig.hpp diff --git a/srcs/ServerConfig.hpp b/srcs/config/ServerConfig.hpp similarity index 100% rename from srcs/ServerConfig.hpp rename to srcs/config/ServerConfig.hpp