clean up config
This commit is contained in:
@@ -110,7 +110,7 @@ server {
|
||||
server {
|
||||
server_name server2;
|
||||
|
||||
listen 0.0.0.0:4040;
|
||||
listen 0.0.0.0:8080;
|
||||
|
||||
index index.html;
|
||||
root ./www2/;
|
||||
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
private:
|
||||
std::string _content;
|
||||
|
||||
|
||||
ServerConfig _parse_server(size_t *start);
|
||||
LocationConfig _parse_location(size_t *start);
|
||||
|
||||
|
||||
@@ -17,8 +17,7 @@ struct ServerConfig
|
||||
std::string host;
|
||||
std::string port;
|
||||
|
||||
std::string root; // ./www/ or www work www/ and www work
|
||||
// i do remove trailing / tho
|
||||
std::string root;
|
||||
|
||||
size_t client_body_limit;
|
||||
|
||||
@@ -42,10 +41,7 @@ struct ServerConfig
|
||||
for(std::map<int, std::string>::const_iterator it = error_pages.begin(); \
|
||||
it != error_pages.end(); it++)
|
||||
std::cout << it->first << "--" << it->second << " ";
|
||||
// for (size_t i = 0; i < error_pages.size(); i++)
|
||||
// std::cout << error_pages->first << "--" << error_pages->second << " ";
|
||||
|
||||
// std::cout << "skiping Locations for now...\n";
|
||||
for (std::vector<LocationConfig>::const_iterator it = locations.begin(); it < locations.end(); it++)
|
||||
it->print_all();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user