Skip to content

hackerspider09/Mini-Nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini Web Server (Nginx-like)

A lightweight web server implementation inspired by Nginx, built for learning and demonstration purposes.

Features

  • Static file serving
  • Basic HTTP request handling
  • Simple routing system
  • Support for common HTTP methods (GET, POST)
  • Error handling and logging
  • Configurable server settings

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/hackerspider09/Mini-Nginx.git
    cd Mini-Nginx/mini-nginx
  2. Run server:

    python3 main.py  

Usage

Configuration

Project Structure

├── 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published