Description: Server listens on port 80 to provide WEB service, able to respond to HTTP GET request sent by the browser, and the browser returns a static HTML page:
1, URL if the request is for a file, and the file exists, returns the requested page or file.
2. If this file does not exist, returns a 404 error.
3. If the request is a directory, the directory structure is returned to the client.
By fork child process server processing new requests, concurrent processing. Server access log to record, including the URL of time, the client s IP address and request.
To Search:
File list (Check if you may need any files):
web_server.c