wip, need somes changes in ConfigParser.
+ _determine_location() + http_method changes + http_method switch in _construct_response() + ConfigParser::_str_to_method_type() moved to global utils.cpp
This commit is contained in:
@@ -12,6 +12,12 @@ server {
|
||||
index index.html; # this is another comment
|
||||
root ./www/;
|
||||
|
||||
# If not explicitly set, ConfigParser need to genererate a location block
|
||||
# like this for path "/" (based on field "root" and "index" of the server)
|
||||
location / {
|
||||
root ./www/;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
allow_methods GET;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user