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