Skip to content
S

Static Web Server

Cross-platform, high-performance

by static-web-serverFree

#867in Developer Tools
0In stores

Description

Static Web Server is a cross-platform, high-performance, asynchronous web server for serving static files. It is written in Rust, ships as a…

Highlights

  • Single ~4 MB Rust binary with no dependencies
  • HTTP/2, TLS and smart compression
  • SPA fallback, rewrites and redirects
  • Basic Auth, security headers and CORS
  • Health endpoint and Prometheus metrics

Ratings & Reviews

No ratings yet

Be the first to rate Static Web Server.

People also visit

L

Local Web Server

A lean, modular web server for rapid full-stack development

Developer Tools
Launch
C

Caddy

Powerful, enterprise-ready, open source web server with automatic HTTPS

Developer Tools
Launch
S

Static.app

One-click hosting solution for your static website

Developer Tools
Launch
F

Ferron

a fast, memory-safe web server written in Rust

Developer Tools
Launch
F

Ferron

Fast, memory-safe web server written in Rust. (Source Code) MIT Rust/Docker/deb

Developer Tools
Launch
M

miniserve

Lightweight file and directory HTTP server

Utilities
Launch

Static Web Server FAQ

What is Static Web Server?

A fast, open-source web server for serving static websites and web assets, built in Rust.

How do I run it?

As a single binary on Linux, macOS or Windows, or in a Docker container. The site's example runs it with --port and --root flags.

How do I configure it?

With CLI flags, environment variables or a TOML file.

Does it support single-page apps?

Yes. It can serve index.html for 404 responses, which suits React, Vue and Svelte apps.

Can it compress files?

Yes. It supports on-demand gzip, brotli and zstd, and it can serve pre-compressed files.

What license is it under?

MIT or Apache-2.0, at your option, according to the repository's license files.

What are the best Static Web Server alternatives?

Popular alternatives to Static Web Server include Local Web Server, Caddy and Static.app. See all Static Web Server alternatives

Developer Stuff

Badges