The purpose of swps
is to serve a single static file as a web server. Besides serving a file in the root, swps
also handles 301, 403 and 404.
Installation
Edit config.mk to match your local setup (swps is installed into the /usr/local
namespace by default), then simply enter the following command to install (if necessary as root):
make clean install
Example usage of swps
# serve index.html on port 8080
swps 8080 index.html
get source here.