whexy1999
Lines of commands to make life easier

Lines of commands to make life easier

Created
Jul 1, 2023 11:09 PM
Last edited time
Jul 24, 2023 10:29 PM
Tags

Static HTTP server

Why not use Python? Because the http.server module in Python has several broken features.
To start a Docker (recommend)
docker run -d -p <host_port>:8080 --restart=always --name=fileserver -v /home/whexy/Downloads:/web halverneus/static-file-server:latest
To start a Go version of HTTP Server
wget https://dl.self.whexy.com/simplehttpserver chmod +x simplehttpserver ./simplehttpserver -path /path/to/folder