mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 04:48:00 +03:00
for tester
This commit is contained in:
29
config/tester.toml
Normal file
29
config/tester.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
[[server]]
|
||||
name = "pohek1.org"
|
||||
host = "127.0.0.1"
|
||||
port = 8080
|
||||
[[server.location]]
|
||||
location = "/"
|
||||
root = "www/tester/"
|
||||
methods = ["GET"]
|
||||
autoindex = true
|
||||
directory_file = "index.html"
|
||||
[[server.location]]
|
||||
location = "/put_test/*"
|
||||
root = "www/tester/"
|
||||
methods = ["PUT]"]
|
||||
autoindex = true
|
||||
upload_dir = "/www/tester/upload_here/"
|
||||
[[server.location]]
|
||||
location = "*.bla"
|
||||
cgi_pass = "~/.local/bin/cgi-test"
|
||||
[[server.location]]
|
||||
location = "/post_body"
|
||||
root = "www/tester/"
|
||||
methods = ["POST"]
|
||||
body_size_limit = 100
|
||||
[[server.location]]
|
||||
location = "/directory/"
|
||||
methods = ["GET"]
|
||||
root = "www/tester/YoupiBanane/"
|
||||
directory_file = "youpi.bad_extension"
|
||||
@@ -40,7 +40,7 @@ namespace config
|
||||
|
||||
TOMLMap *parse(void)
|
||||
{
|
||||
std::string filename = "config/real.toml";
|
||||
std::string filename = "config/tester.toml";
|
||||
config::TOMLParser parser(filename);
|
||||
TOMLMap *root = parser.parse();
|
||||
/* config::display(root); */
|
||||
|
||||
0
www/tester/YoupiBanane/Yeah/not_happy.bad_extension
Normal file
0
www/tester/YoupiBanane/Yeah/not_happy.bad_extension
Normal file
0
www/tester/YoupiBanane/nop/other.pouic
Normal file
0
www/tester/YoupiBanane/nop/other.pouic
Normal file
0
www/tester/YoupiBanane/nop/youpi.bad_extension
Normal file
0
www/tester/YoupiBanane/nop/youpi.bad_extension
Normal file
0
www/tester/YoupiBanane/youpi.bad_extension
Normal file
0
www/tester/YoupiBanane/youpi.bad_extension
Normal file
0
www/tester/YoupiBanane/youpi.bla
Normal file
0
www/tester/YoupiBanane/youpi.bla
Normal file
Reference in New Issue
Block a user