File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ server [options]
85
85
--auth-dir <fs-path> ...
86
86
Use Basic Auth for specific file system path.
87
87
--user [<username>]:[<password>] ...
88
- Specify users for Basic Auth, empty username and/or password is allowed.
88
+ Specify users for current virtual host for Basic Auth, empty username and/or password is allowed.
89
89
--user-base64 [<username>]:[<base64-password>] ...
90
90
--user-md5 [<username>]:<md5-password> ...
91
91
--user-sha1 [<username>]:<sha1-password> ...
@@ -175,6 +175,14 @@ Show access log on console:
175
175
server -L -
176
176
```
177
177
178
+ Http Basic Auth:
179
+ - requires authentication for url /files
180
+ - username: user1, password: pass1
181
+ - username: user2, password: pass2
182
+ ``` sh
183
+ server --auth /files --user user1:pass1 --user-sha1 user2:8be52126a6fde450a7162a3651d589bb51e9579d
184
+ ```
185
+
178
186
Start 2 virtual hosts:
179
187
- server 1
180
188
- listen on port 80 for http
You can’t perform that action at this time.
0 commit comments