Simple and small HTTP server with NetCat.
httpd.sh [PORT=8080 [ROOT_DIR=./]]Basic usage
Put httpd.sh file into directory with your files, and just run it.
./httpd.shBy default script will open port 8080 and serve files.
Custom port example
./httpd.sh 5000Custom port and directory example
./httpd.sh 5000 /home/user/my_project/More projects
Look at the www.promyk.doleczek.pl, maybe you will find another interesting thing :-)
from https://github.com/jdoleczek/Bash-NetCat-HTTPD
No comments:
Post a Comment