Simple Deployment of an HTTP File Server on a Local Area Network

Simple Deployment of an HTTP File Server on a Local Area Network

After receiving a request from a friend, they wanted to share some files within their company’s local area network for personnel in various departments to download and use. Due to unsatisfactory support for web-based solutions, they preferred not to use FTP services.

Today, I would like to share two HTTP protocol-based file servers, written in Go language, which offer high concurrency, robust functionality, and simple deployment—just one command is needed to get started. Let’s take a look!

Simple Deployment of an HTTP File Server on a Local Area Network

01

Go-http-file-server

A simple command-line based HTTP file server for sharing local file systems.

Simple Deployment of an HTTP File Server on a Local Area Network

Features:

  • A more user-friendly interface than Apache/Nginx directory index pages

  • Responsive design for mobile displays

  • A single executable file

  • Ability to download all contents of the current directory as an archive file

  • Ability to upload files to the current directory

  • Custom themes can be specified for page rendering

  • Supports location aliases (mounting another directory to a URL location)

Start Command:

E:\ghfs>ghfs.exe -l 80 -r E:\ftp\it

Simple Deployment of an HTTP File Server on a Local Area Network

Each department can open the server address in their browser to download files.

Simple Deployment of an HTTP File Server on a Local Area NetworkSimple Deployment of an HTTP File Server on a Local Area Network

This is just the basic usage; it also supports more features, which can be explored by running the following command.

ghfs.exe --help

Simple Deployment of an HTTP File Server on a Local Area Network

02

Go HTTP File Server

Goal: To create the best HTTP file server (recommended)

Simple Deployment of an HTTP File Server on a Local Area Network

Features:

  • Supports QR code generation

  • Different icons for different file types

  • Supports showing or hiding hidden files

  • Upload support (via token or session authentication)

  • HTTP basic authentication

  • Supports directory zip downloads

  • Global file search

  • Quick copy download links

  • Displays folder sizes

Start Command:

gohttpserver -r d:\apk --port 8000

Simple Deployment of an HTTP File Server on a Local Area Network

Clients can open their browser and enter the server address, as shown in the image, with a simple interface that supports directory downloads, making it very user-friendly!

Simple Deployment of an HTTP File Server on a Local Area Network

For more command exploration, you can use the following command to view

gohttpserver --help

Download Link:

Follow the public account and reply 250401 to get the download link. If you find it useful, feel free to share and forward!

Leave a Comment