- Library https://www.npmjs.com/package/http-server
- Install
npm install --global http-server
- Usage
sudo http-server /path/to/serve -p 80
(needsudo
for port80
only)
- Usage with Python v3
sudo python3 -m http.server 80
(needsudo
for port80
only)
- Usage
docker run --name nginx -v /your/local/path/to/mount:/usr/share/nginx/html:ro -p 80:80 -d nginx
- There are so many ways to do construct a local HTTP server.