The directory name and the Access file name cannot have "." Prevent clients from exceeding their access to B. Home= focus on examining the following possible issues a. Handle the mapping relationship between global and individual Web serversĤ.5 Home Directory with default homepage (1). Define the corresponding struct Err_response structure (3) for each Web server (including with). Define a global Error message reply page (2). Rational use of surprise group effect (process)Ĥ.4. A virtual host problem is more complex than a real host because it requires multiple hosts to be bound on a set of Ip:port, each with domain distinction, which uses the SO_REUSEADDR and So_reuseport options (2). Define a struct Web_server entity for each server and generate the corresponding process Scan the configuration file first, find out all, each server is a Web server, and deal with the conflict problem (3) according to the unique principle.
The sub-process of fork () should first shut down the access handle (2) for the other Web server. Before entering Deamon mode, ensure that all information is displayed on the terminal, and after entering Deamon mode, redirect stderr to the global log file and redirect stdout to the client access log fileĤ.2 Multi-Host (1). The client access log is sent to stdout (3).
The server program information is sent to stderr (2). Other *3.10 server status queries, such as Apache's server-status feature * This feature is not available in version 1thĤ, the function realizes the method 4.1 log record (1). configuration file format Definition 13th
See http/1.0 Agreement see: RFC1945, 9thĢ. Here is a simple Miniweb server that was designed when Watchmen a friend to learn network programming.