Static Web Server

Website

High-performance static file web server with TLS and HTTP/2

2.3k stars 131 forks last commit first released Apache-2.0

Actively maintained

Last commit 20 Aug 2026.

Static Web Server (SWS) is a small, production-ready web server designed for fast and efficient static file and asset hosting. Built in Rust on asynchronous networking foundations, it targets low resource usage while supporting modern HTTP features across many platforms.

Key Features

  • High-performance asynchronous static file serving
  • HTTP/1.1 and HTTP/2 support
  • TLS support with optional HTTP to HTTPS redirect
  • Optional on-demand and pre-compressed file serving (gzip, brotli, zstd, deflate)
  • Byte-range requests (partial content) for large files
  • SPA-friendly 404 fallback pages and custom error pages
  • Directory listing (with sorting) and optional JSON output
  • Configurable headers (including Cache-Control and security headers) and CORS support
  • Basic HTTP authentication, URL rewrites/redirects, and virtual hosting
  • Configuration via CLI, environment variables, or a TOML config file

Use Cases

  • Hosting static websites, documentation, and front-end assets
  • Serving single-page applications behind a lightweight web server
  • Running a minimal file server in containers or on resource-constrained hosts

Limitations and Considerations

  • Focused on static content; it is not intended to be a full dynamic application server

SWS is a strong fit when you need a simple, secure, and fast static server with modern protocol support and flexible runtime configuration. Its small footprint and broad platform support make it suitable for everything from local development to production deployments.

Categories:

Tags:

Tech Stack:

Share:

Similar to Static Web Server

Zoraxy logo

Zoraxy

HTTP reverse proxy and gateway with web UI and real-time analytics

5.4k
320
Last commit

A general-purpose HTTP reverse proxy and forwarding tool for homelabs, offering web UI, ACME/TLS, stream proxy, plugins and realtime monitoring.

AGPL-3.0Actively maintained
Alternative to:
ngrok logo
ngrok
+16
Ferron logo

Ferron

Fast, memory-safe web server with automatic TLS and modern protocol support

2.1k
94
Last commit

A Rust-written, memory-safe web server offering automatic Let's Encrypt TLS, KDL configuration, HTTP/2/HTTP/3, reverse proxying, and built-in tooling for serving web apps.

MITActively maintained
Alternative to:
Apache HTTP Server logo
Apache HTTP Server
+3
NGINX logo

NGINX

High-performance web server, reverse proxy, and load balancer

31.5k
8.3k
Last commit

NGINX is a high-performance HTTP server and reverse proxy with caching, load balancing, TLS termination, and TCP/UDP proxying via a modular architecture.

BSD-2-ClauseActively maintained
Alternative to:
NGINX Management Suite logo
NGINX Management Suite
+2
Lighttpd logo

Lighttpd

Lightweight event-driven HTTP server optimized for high performance

Open-source, low-memory web server written in C that provides FastCGI/SCGI/CGI, TLS support, HTTP/1.1 and HTTP/2, modular architecture and high concurrency.

Activity unknown
Alternative to:
Apache HTTP Server logo
Apache HTTP Server
+2
sish logo

sish

SSH-based reverse tunneling for HTTP(S), WebSockets, and TCP

4.7k
333
Last commit

sish is an open-source Serveo/ngrok alternative that exposes local HTTP(S), WebSockets, and TCP services to the internet using SSH reverse tunnels.

MITActively maintained
Alternative to:
ngrok logo
ngrok
+3
Self-Hosted Gateway logo

Self-Hosted Gateway

Docker-native reverse proxy over WireGuard to expose local services

1.7k
87
Last commit

Automates Reverse Proxy-over-VPN (RPoVPN) using WireGuard, Caddy and NGINX to expose Docker Compose services to the public Internet with automated TLS.

AGPL-3.0Slowing down
Alternative to:
Cloudflare Tunnel logo
Cloudflare Tunnel
+3