h2static
Install latest/stable of h2static
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Details for h2static
Package name
- h2static
License
- EUPL-1.2
Last updated
- 11 January 2024 - latest/stable
- 4 October 2026 - latest/edge
Websites
Contact
Source code
Report a bug
External link warning
You are about to open
Do you wish to proceed?
Report a Snap Store violation
Report h2static for a Snap Store violation
Snap Store Violation Report submitted successfully
Thank you for your report. Information you provided will help us investigate further.
Error submitting report
There was an error while sending your report. Please try again later.
Share this snap
Generate an embeddable card to be shared on external websites.
Tiny static web server with TLS and HTTP/2 support
Static web server using the builtin Go http library.
It supports HTTP/2 and TLS.
This snap provides both an h2static command that can be run by any user,
with access to the user home directory, and a system-wide daemon service.
The service can be configured with the following options (via snap set):
allow-outside-symlinksallow access to symlinks whose target is outside of the
serve-path. This is disabled by default since it might be a security issue.basic-authcontent of the crednetials file for Basic Authorization. Each line should contain colon-separated pair of username and SHA512 hash of the password.
disable-h2set to true to disable HTTP/2 support.
disable-indexset to true to disable directory index.
disable-lookup-with-suffixset to true to disable disable matching files with .htm(l) suffix for paths without suffix.
listenthe
address:portfor the service to listen on. The address can be omitted (e.g.:8080) to bind all addresses.If this option empty or null, the service will not be started.
request-path-prefixa path prefix to be stripped for the request. This is mostly useful in the case where the server is behind a reverse proxy with a prefix set.
serve-paththe directory to serve content from. it's set to
$SNAP_COMMONif not specified.If the
removable-mediainterface is connected, paths under/mediacan also be used.show-dotfilesset to true to show hidden files (starting with a dot).
tls.cert,tls.keyASCII contents of the TLS certificate and key. If both are set, HTTPS support will be enabled.
| Revision | Channel | Version | Build | Commit | Download SBOM |
|---|
The build and commit information is derived from build infrastructure records.
Install h2static on your Linux distribution
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.