A lightweight web server implementation inspired by Nginx, built for learning and demonstration purposes.
- Static file serving
- Basic HTTP request handling
- Simple routing system
- Support for common HTTP methods (GET, POST)
- Error handling and logging
- Configurable server settings
-
Clone the repository:
git clone https://github.com/hackerspider09/Mini-Nginx.git cd Mini-Nginx/mini-nginx -
Run server:
python3 main.py
├── mini-nginx
│ ├── config.yaml
│ ├── core
│ │ ├── __init__.py
│ │ ├── config.py
│ │ ├── helper.py
│ │ ├── logger.py
│ │ ├── proxy.py
│ │ ├── router.py
│ │ ├── server.py
│ │ └── worker.py
│ ├── logs
│ ├── main.py
│ ├── requirements.txt
│ └── static
│ ├── errors
│ │ ├── 400.html
│ │ └── 404.html
│ ├── index.html
│ └── root.html
├── README.md
└── web_app
├── socket_client.py
└── web_application.py