A very simple http server. Just run qhttp
to serve files in the current directory and subdirectories on port 8000. Specify a port parameter (qhttp -port 3000
) if you want to use a different port.
Just because I felt like it and coding is fun. I've been using python -m SimpleHTTPServer
for years and it still works (it serves single client at a time). There are other similar utlities like node's http-server.
- Install using Homebrew:
brew install skyflyer/homebrew-skyflyer-tap/qhttp
- Download binary and extract. Copy to
/usr/local/bin
or somewhere else on your$PATH
.
go get github.com/skyflyer/qhttp
- Execute
qhttp
from a directory you wish to serve.
If you want to use a different listening port, use qhttp -port 3000
to listen on port 3000.