Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit dfee4f5

Browse files
authored
Update README.md
1 parent efee30e commit dfee4f5

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

README.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# Simpler HTTP Server
2+
13
# How it looks like?
24

35
### Screenshot
46
<img src="./screenshot.png" width="80%" height="80%">
57

68
### Command Line Arguments
79
```
8-
Simpler HTTP(s) Server 0.6.3
10+
Simpler HTTP(s) Server 0.6.9x
911
1012
USAGE:
1113
simpler-http-server [FLAGS] [OPTIONS] [--] [root]
@@ -19,28 +21,30 @@ FLAGS:
1921
--nocache Disable http cache
2022
--norange Disable header::Range support (partial request)
2123
--nosort Disable directory entries sort (by: name, modified, size)
24+
-o, --open Open the page in the default browser
2225
-s, --silent Disable all outputs
23-
-u, --upload Enable upload files (multiple select) (CSRF token required)
26+
-u, --upload Enable upload files. (multiple select)
2427
-V, --version Prints version information
2528
2629
OPTIONS:
27-
-a, --auth <auth> HTTP Basic Auth (username:password)
28-
--cert <cert> TLS/SSL certificate (pkcs#12 format)
29-
--certpass <certpass> TLS/SSL certificate password
30-
-c, --compress <compress>...
31-
Enable file compression: gzip/deflate
32-
Example: -c=js,d.ts
33-
Note: disabled on partial request!
34-
--ip <ip> IP address to bind [default: 0.0.0.0]
35-
-p, --port <port> Port number [default: 8000]
36-
--redirect <redirect> takes a URL to redirect to using HTTP 301 Moved Permanently
37-
-t, --threads <threads> How many worker threads [default: 3]
38-
--try-file <PATH>
39-
serve this file (server root relative) in place of missing files (useful for single page apps) [aliases:
40-
try-file-404]
41-
-l, --upload-size-limit <upload_size_limit> Upload file size limit [bytes] [default: 8000000]
42-
30+
-a, --auth <auth> HTTP Basic Auth (username:password)
31+
-b, --base-url <base-url> Base URL to prepend in directory indexes. For reverse proxying. This prefix is
32+
supposed to be pre-stripped when reaching simple-http-server. [default: /]
33+
--cert <cert> TLS/SSL certificate (pkcs#12 format)
34+
--certpass <certpass> TLS/SSL certificate password
35+
-c, --compress <compress>... Enable file compression: gzip/deflate
36+
Example: -c=js,d.ts
37+
Note: disabled on partial request!
38+
--ip <ip> IP address to bind [default: 0.0.0.0]
39+
-p, --port <port> Port number [default: 8000]
40+
--redirect <redirect> takes a URL to redirect to using HTTP 301 Moved Permanently
41+
-t, --threads <threads> How many worker threads [default: 3]
42+
--try-file <PATH> serve this file (server root relative) in place of missing files (useful for single
43+
page apps) [aliases: try-file-404]
44+
-l, --upload-size-limit <NUM> Upload file size limit [bytes] [default: 8000000]
4345
46+
ARGS:
47+
<root> Root directory
4448
```
4549

4650
# Installation

0 commit comments

Comments
 (0)