A Lightweight HTTP Server with Multiple Instance Support

Run multiple HTTP servers with different configurations on a single machine

nanoHttp
$ nanoHttp add -name myserver -web-folder /path/to/files
$ nanoHttp start myserver
$ nanoHttp list
$ nanoHttp stop myserver
$ nanoHttp delete myserver

Features

🚀

Multiple Instances

Run multiple HTTP servers with different configurations on a single machine

âš¡

Lightweight

Minimal resource usage with high performance

🔧

Configurable

Customize each instance with YAML configuration files

Installation

Quick Install

curl -fsSL https://nanohttp.mguptahub.com/install.sh | bash

Manual Install

# Download the binary curl -LO https://github.com/mguptahub/nanoHttp/releases/latest/download/nanoHttp-linux-amd64 # Make it executable chmod +x nanoHttp-linux-amd64 # Move to /usr/local/bin sudo mv nanoHttp-linux-amd64 /usr/local/bin/nanoHttp
# Download the binary curl -LO https://github.com/mguptahub/nanoHttp/releases/latest/download/nanoHttp-darwin-amd64 # Make it executable chmod +x nanoHttp-darwin-amd64 # Move to /usr/local/bin sudo mv nanoHttp-darwin-amd64 /usr/local/bin/nanoHttp

Usage

Add a Server Instance

# Basic usage with required flags nanoHttp add -name myserver -web-folder /path/to/files # Full usage with all options nanoHttp add -name myserver \ -port 8080 \ -web-folder /path/to/files \ -allow-dir-listing

Manage Instances

# Start an instance nanoHttp start myserver # Stop an instance nanoHttp stop myserver # Delete an instance nanoHttp delete myserver # List all instances nanoHttp list