TheWaWaR / Simple Http Server
Licence: mit
Simple http server in Rust (Windows/Mac/Linux)
Stars: ✭ 428
Programming Languages
rust
11053 projects
Projects that are alternatives of or similar to Simple Http Server
Http Server
a simple zero-configuration command-line http server
Stars: ✭ 11,280 (+2535.51%)
Mutual labels: static, server
Hrconvert2
A self-hosted, drag-and-drop, & nosql file conversion server that supports 62x file formats.
Stars: ✭ 132 (-69.16%)
Mutual labels: server, file
Ts3admin.class
The ts3admin.class is a powerful api for communication with Teamspeak 3 Servers from your website! Your creativity knows no bounds!
Stars: ✭ 103 (-75.93%)
Mutual labels: server, file
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (-62.85%)
Mutual labels: server, file
Nodemcu Espress
Ultra-Lightweight and modular Node.js express like http server for NodeMCU. web - ESP8266
Stars: ✭ 39 (-90.89%)
Mutual labels: static, server
Binserve
A blazingly fast static web server with routing, templating, and security in a single binary you can set up with zero code. ⚡️🦀
Stars: ✭ 401 (-6.31%)
Mutual labels: static, server
React Server
🚀 Blazing fast page load and seamless navigation.
Stars: ✭ 3,932 (+818.69%)
Mutual labels: server
Graphql Ws
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Stars: ✭ 398 (-7.01%)
Mutual labels: server
Phpinsights
🔰 Instant PHP quality checks from your console
Stars: ✭ 4,442 (+937.85%)
Mutual labels: static
Mumble
Mumble is an open-source, low-latency, high quality voice chat software.
Stars: ✭ 4,418 (+932.24%)
Mutual labels: server
Walkable
A Clojure(script) SQL library for building APIs: Datomic® (GraphQL-ish) pull syntax, data driven configuration, dynamic filtering with relations in mind
Stars: ✭ 384 (-10.28%)
Mutual labels: server
Chasquid
SMTP (email) server with a focus on simplicity, security, and ease of operation [mirror]
Stars: ✭ 427 (-0.23%)
Mutual labels: server
How it looks like?
Screenshot
Command Line Arguments
Simple HTTP(s) Server 0.6.1
USAGE:
simple-http-server [FLAGS] [OPTIONS] [--] [root]
FLAGS:
--cors Enable CORS via the "Access-Control-Allow-Origin" header
-h, --help Prints help information
-i, --index Enable automatic render index page [index.html, index.htm]
--nocache Disable http cache
--norange Disable header::Range support (partial request)
--nosort Disable directory entries sort (by: name, modified, size)
-s, --silent Disable all outputs
-u, --upload Enable upload files (multiple select)
-V, --version Prints version information
OPTIONS:
-a, --auth <auth> HTTP Basic Auth (username:password)
--cert <cert> TLS/SSL certificate (pkcs#12 format)
--certpass <certpass> TLS/SSL certificate password
-c, --compress <compress>...
Enable file compression: gzip/deflate
Example: -c=js,d.ts
Note: disabled on partial request!
--ip <ip> IP address to bind [default: 0.0.0.0]
-p, --port <port> Port number [default: 8000]
--redirect <redirect> takes a URL to redirect to using HTTP 301 Moved Permanently
-t, --threads <threads> How many worker threads [default: 3]
--try-file <PATH>
serve this file (server root relative) in place of missing files (useful for single page apps) [aliases:
try-file-404]
-l, --upload-size-limit <upload_size_limit> Upload file size limit [bytes] [default: 8000000]
Installation
Download binary
- windows-64bit
- osx-64bit
- linux-64bit
Install by cargo
# Install Rust
curl https://sh.rustup.rs -sSf | sh
# Install simple-http-server
cargo install simple-http-server
rehash
simple-http-server -h
Features
- [x] Windows support (with colored log)
- [x] Specify listen address (ip, port)
- [x] Specify running threads
- [x] Specify root directory
- [x] Pretty log
- [x] Nginx like directory view (directory entries, link, filesize, modfiled date)
- [x] Breadcrumb navigation
- [x] (default enabled) Guess mime type
- [x] (default enabled) HTTP cache control
- Sending Last-Modified / ETag
- Replying 304 to If-Modified-Since
- [x] (default enabled) Partial request
- Accept-Ranges: bytes([ByteRangeSpec; length=1])
- [Range, If-Range, If-Match] => [Content-Range, 206, 416]
- [x] (default disabled) Automatic render index page [index.html, index.htm]
- [x] (default disabled) Upload file
- [x] (default disabled) HTTP Basic Authentication (by username:password)
- [x] Sort by: filename, filesize, modifled
- [x] HTTPS support
- [x] Content-Encoding: gzip/deflate
- [x] Added CORS headers support
- [x] Silent mode
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].