mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
An usable bash-httpserver with easy configuration and very simple PHP
config.sh | ||
htmlfilelist.sh | ||
httpheaders.sh | ||
init.sh | ||
main.sh | ||
README.md | ||
readrequest.sh | ||
start-socat.sh | ||
urlcheck.sh | ||
writehtml.sh |
simpsh-httpd
An usable bash-httpserver with easy configuration and PHP.
Installation
- Install following packages: bash socat (Debian/Ubuntu: $ sudo apt install bash socat)
- Download simpsh-httpd:
$ git clone https://github.com/niansa/simpsh-httpd.git
$ cd ./simpsh-httpd
- Edit config.sh:
FILES
Here is the webroot (homefolder for the website).HTMLTITLE
This is the title for the filelist.HTMLFILE
The finished Document will saved here. ${HTMLFILEID} must be included!DEFAULTCONTENT
This Content-Type will used for unknown files.PORT
This port will used for listening.