1
+ # Simpler HTTP Server
2
+
1
3
# How it looks like?
2
4
3
5
### Screenshot
4
6
<img src =" ./screenshot.png " width =" 80% " height =" 80% " >
5
7
6
8
### Command Line Arguments
7
9
```
8
- Simpler HTTP(s) Server 0.6.3
10
+ Simpler HTTP(s) Server 0.6.9x
9
11
10
12
USAGE:
11
13
simpler-http-server [FLAGS] [OPTIONS] [--] [root]
@@ -19,28 +21,30 @@ FLAGS:
19
21
--nocache Disable http cache
20
22
--norange Disable header::Range support (partial request)
21
23
--nosort Disable directory entries sort (by: name, modified, size)
24
+ -o, --open Open the page in the default browser
22
25
-s, --silent Disable all outputs
23
- -u, --upload Enable upload files (multiple select) (CSRF token required )
26
+ -u, --upload Enable upload files. (multiple select)
24
27
-V, --version Prints version information
25
28
26
29
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]
43
45
46
+ ARGS:
47
+ <root> Root directory
44
48
```
45
49
46
50
# Installation
0 commit comments