A web server for handling general HTTP requests, built with sockets in Java.
This web server is able to handle HTTP requests from client(web browser) simultaneously. Java sockets are used to accept string-format requests, process them and return string-format responses. So, this web server processes standard HTTP requests and responses at socket level.
git clone https://github.com/jojozhuang/web-server-java.git
Open the project in Eclipse, compile and run. Access http://localhost:2540/ in web browser, enjoy!
Read portfolio Web Server(Java) to learn the main functions of this web server.
Read tutorial Building Web Server with Java Socket to learn how this web server is built.