-
Notifications
You must be signed in to change notification settings - Fork 0
static files
User65k edited this page Feb 27, 2023
·
2 revisions
Used to deliver static files from the server to clients on GET requests.
Specify at lest the key dir in a mount path.
| key | meaning |
|---|---|
| dir | local folder to serve files from |
| follow_symlinks | Optional Allow symlinks to be followed to resolve requests. If false (default) all resolved files are canonicalized and compared against the canonicalized form of "dir" |
| index | Optional if a directory is requested, look for one of these files and serve it |
| serve | Optional only serve files with these extensions |
Linux, follow symlinks, only serve certain file extensions and look for index files:
dir = "/var/www/"
follow_symlinks = true
index = ["index.html", "index.htm"]
serve = ["html", "htm", "css", "js", "png", "jpeg", "jpg"]Windows, dont follow symlinks, serve everything:
dir = 'C:\inetpub\wwwroot'- Home
- systemd
-
Server Config
- logging
-
virtual host
- TLS
-
mount path
- authentication
- type: FCGI
- type: Redirect
- type: Reverse Proxy
- type: static files
- type: webdav
- type: websocket