1
0
Fork 0
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
Find a file
2017-03-09 10:48:05 +01:00
config.sh Update config.sh 2017-03-09 10:07:48 +01:00
htmlfilelist.sh Update htmlfilelist.sh 2017-03-09 10:39:18 +01:00
httpheaders.sh Add files via upload 2017-03-09 09:00:09 +01:00
init.sh Update init.sh 2017-03-09 10:48:05 +01:00
main.sh Create main.sh 2017-03-09 08:59:36 +01:00
README.md Update README.md 2017-03-09 10:26:35 +01:00
readrequest.sh Update readrequest.sh 2017-03-09 10:41:14 +01:00
start-socat.sh Add files via upload 2017-03-09 09:00:09 +01:00
urlcheck.sh Update urlcheck.sh 2017-03-09 10:43:53 +01:00
writehtml.sh Add files via upload 2017-03-09 09:00:09 +01:00

simpsh-httpd

An usable bash-httpserver with easy configuration and PHP.

Installation

  1. Install following packages: bash socat
  2. Download simpsh-httpd:
  • $ cd ~
  • $ git clone https://github.com/niansa/simpsh-httpd.git
  • $ cd ./simpsh-httpd
  1. 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.
  • WEBSITE This is the URL of the Website (Example: "http://localhost:$PORT")
  1. Make all files executable
  • chmod ~/simpsh-httpd/* +x
  1. Start simpsh-httpd:
  • cd ~/simpsh-httpd
  • ./start-socat.sh
  1. Have fun with simpsh-httpd!