@@ -29,46 +29,46 @@ Then compile the project like above.
2929## Examples
3030Start server on port 8080, root directory is current working directory:
3131``` sh
32- server -l 8080
32+ ghfs -l 8080
3333```
3434
3535Start server on port 8080, root directory is /usr/share/doc:
3636``` sh
37- server -l 8080 -r /usr/share/doc
37+ ghfs -l 8080 -r /usr/share/doc
3838```
3939
4040Start server on default port, root directory is /tmp, and allow upload files to file system directory /tmp/data:
4141``` sh
42- server -r /tmp -u /data
42+ ghfs -r /tmp -u /data
4343```
4444
4545Share files from /etc, but also mount /usr/share/doc to url path /doc
4646``` sh
47- server -r /etc -a :/doc:/usr/share/doc
47+ ghfs -r /etc -a :/doc:/usr/share/doc
4848```
4949
5050Start server on port 8080, serve for HTTPS protocol
5151``` sh
52- server -k /path/to/certificate/key -c /path/to/certificate/file -l 8080
52+ ghfs -k /path/to/certificate/key -c /path/to/certificate/file -l 8080
5353```
5454
5555Do not show hidden unix directories and files that starts with ` . ` .
5656Tips: wrap wildcard by quotes to prevent expanding by shell.
5757``` sh
58- server -H ' .*'
58+ ghfs -H ' .*'
5959```
6060
6161Show access log on console:
6262``` sh
63- server -L -
63+ ghfs -L -
6464```
6565
6666Http Basic Auth:
6767- requires authentication for url /files
6868- username: user1, password: pass1
6969- username: user2, password: pass2
7070``` sh
71- server --auth /files --user user1:pass1 --user-sha1 user2:8be52126a6fde450a7162a3651d589bb51e9579d
71+ ghfs --auth /files --user user1:pass1 --user-sha1 user2:8be52126a6fde450a7162a3651d589bb51e9579d
7272```
7373
7474Start 2 virtual hosts:
@@ -87,7 +87,7 @@ Start 2 virtual hosts:
8787 - hostname: server2.example.com
8888 - root directory: /var/www/server2
8989``` sh
90- server --listen-plain 80 --listen-tls 443 -c /cert/server1.pem -k /cert/server1.key --hostname server1.example.com -r /var/www/server1 ,, --listen-plain 80 --listen-tls 443 -c /cert/server2.pem -k /cert/server2.key --hostname server2.example.com -r /var/www/server2
90+ ghfs --listen-plain 80 --listen-tls 443 -c /cert/server1.pem -k /cert/server1.key --hostname server1.example.com -r /var/www/server1 ,, --listen-plain 80 --listen-tls 443 -c /cert/server2.pem -k /cert/server2.key --hostname server2.example.com -r /var/www/server2
9191```
9292
9393## Usage
0 commit comments