forthespada/MyPoorWebServer
Free一款可运行的基于C++ 实现的WebServer服务器,基于《TCPIP网络编程》和《Linux高性能服务器编程》实现的服务器项目。
About forthespada/MyPoorWebServer
MyPoorWebServer is an educational HTTP server project originally written in C++11 and later ported to C. It is designed for learning network programming based on the classic textbooks "TCP/IP Network Programming" and "Linux High-Performance Server Programming". The server supports static file serving, CGI scripts (via post.cgi), and listens on port 6379. It is built with Make and intended to run on Linux. The repository includes example HTML pages and is configured with appropriate file permissions. The project is maintained by forthespada and has gained 1.5k stars on GitHub, serving as a practical resource for students and developers looking to understand web server internals.
Key Features
Pros & Cons
- Educational and well-documented for beginners
- Based on authoritative textbooks
- Lightweight and easy to compile with Make
- Active GitHub community with stars and forks
- Free and open-source with permissive license (MIT implied)
- Includes a functional CGI example
- Primarily written in C (C++ version removed); may not suit C++ learners
- Limited to basic HTTP/1.1 features; no HTTPS, chunked encoding, or persistent connections
- Not production-ready; intended for learning only
- Documentation is mostly in Chinese, limiting accessibility
- Only tested on Linux; no Windows/macOS support