Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 982 Bytes

File metadata and controls

22 lines (14 loc) · 982 Bytes

Multithreaded HTTP Server

This project is a lightweight, multi-threaded HTTP/1.1 server implemented in Python using only the standard library. It serves static HTML, text, and image files from a themed resources/ directory and supports JSON file uploads. The server handles multiple client connections concurrently using a configurable thread pool and includes basic security features like path traversal protection, host header validation, and MIME type enforcement.


Build and Run Instructions

Requirements

  • Python 3.7 or higher
  • No external libraries required (only Python standard library)

Running the Server

  1. Clone or download the repository.

  2. Ensure the resources directory exists in the project root. This folder contains themed resources such as HTML pages, text files, and images (e.g., ae_86_front.png, ae_86_interior.jpg).

  3. Start the server:

    python server.py 
    # Defaults: host=127.0.0.1, port=8080, max_threads=10