Review parsing Eric and Luke.
Combined the config parser with Webserv class.
This commit is contained in:
@@ -4,15 +4,26 @@ server {
|
||||
|
||||
server_name our_server;
|
||||
|
||||
listen 0.0.0.0:80;
|
||||
listen 0.0.0.0:4040;
|
||||
|
||||
|
||||
index index.html; # this is another comment
|
||||
root ./www/;
|
||||
|
||||
allow_methods GET;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
# this is a comment
|
||||
|
||||
server_name our_server;
|
||||
|
||||
listen 0.0.0.0:4047;
|
||||
|
||||
|
||||
index index.html; # this is another comment
|
||||
root ./www/;
|
||||
|
||||
allow_methods GET;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user