KingDownloads

go-http-file-server

by mjpclab 479 stars MITUtilities
Download
go-http-file-server preview

About go-http-file-server

Go HTTP File Server is a command-line utility for sharing files over HTTP. It serves local directories via a web interface with a more user-friendly display than traditional servers like Apache or Nginx.

The tool is designed as a single executable with no external dependencies, making it portable and easy to deploy. It supports both file downloads and uploads when configured, along with features like directory listing, custom themes, and path aliasing.

Key features

  • Mobile-friendly directory listing interface
  • Single executable with no dependencies
  • Directory download as archive file
  • File upload capability
  • Custom theme support for page rendering
  • Path aliasing to mount directories at custom URL locations
  • HTTP Basic Authentication support
  • HTTPS support with certificate configuration

Download v1.21.5

May 16, 2026
View all 10 versions

Frequently asked questions

Is go-http-file-server free?
Yes. go-http-file-server is free and open-source software, distributed under the MIT license.
Which platforms does go-http-file-server support?
go-http-file-server provides downloads for Windows, macOS, Linux.
What is the latest version of go-http-file-server?
The latest version is v1.21.5, released on May 16, 2026.
How do I install Go HTTP File Server?
Install using Go with 'go install mjpclab.dev/ghfs@latest' for Go 1.18+. Alternatively, build from source with 'go build .'
What platforms does it support?
The software runs anywhere Go compiles, as it's a single executable with no dependencies.
How do I start a basic server?
Run 'ghfs -l 8080' to serve the current directory on port 8080, or specify a root directory with '-r /path/to/files'
Is there authentication support?
Yes, HTTP Basic Auth is supported with configurable usernames and passwords for specific paths.

More Utilities