Script to share directory as webserver

terminalMy favourite tool to share a directory over http is boa. However, new options are always welcome, more so when it is a simple script. A developer has shared such a script that uses CGI to share a directory as a webserver.

To use the script and serve a directory as a HTTP server, run:

$ curl -L http://tinyurl.com/servesh1 | sh

The script is published as a GitHub gist and you can go thorugh it here.

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s