webserv is an HTTP/1.1 server written in C++98. The functionalities and configurations are heavily based on Nginx's.
-
Compile the program with
make. -
Launch
webservwith a configuration file../webserv 42_test_config.txt -
Launch an HTTP request with a browser by entering as the url the same IP/Port address as specified by the
listendirective of the configuration file (i.e.127.0.0.1:8000).
listenaddress:port
The IP/Port address combination that this server block is designed to respond to.error_pagecode ... uri
Configures the server’s statuses and redirections when errors occur.client_max_body_sizesize
Sets the maximum file upload size.limit_exceptmethod
Limits allowed HTTP methods.rootpath
Sets the root directory for requests.autoindexon | off
Enables or disables the directory listing output.indexfile ...
Defines files that will be used by default when no specific file is requested.cgi_extextension binary
Defines the possible executable CGI scripts.
