diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-10-31 19:23:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 19:23:13 +0000 |
commit | 62c26cd809a156aa1b20f53f29534a09b38b3496 (patch) | |
tree | aea9554faba28fdc64dd1f8183c15e521a126815 /README.md | |
parent | Add --locked to install instructions (diff) | |
download | miniserve-62c26cd809a156aa1b20f53f29534a09b38b3496.tar.gz miniserve-62c26cd809a156aa1b20f53f29534a09b38b3496.zip |
Document --index and --spa
Diffstat (limited to '')
-rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -30,6 +30,14 @@ Sometimes this is just a more practical and quick way than doing things properly ### Serve a single file: miniserve linux-distro.iso + +### Set a custom index file to serve instead of a file listing: + + miniserve --index test.html + +### Serve an SPA (Single Page Application) so that non-existent paths are forwarded to the SPA's router instead + + miniserve --spa --index index.html ### Require username/password: |