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
2018-01-06 16:19:06 +01:00
config.sh Update config.sh 2017-08-25 16:09:27 +02:00
filelist.sh Add files via upload 2017-08-21 08:55:46 +02:00
htmlfilelist.sh Update htmlfilelist.sh 2017-03-09 10:39:18 +01:00
httpheaders.sh Add files via upload 2017-08-21 08:55:46 +02:00
init.sh Add files via upload 2017-08-21 08:55:46 +02:00
LICENSE.md Update and rename LICENSE to LICENSE.md 2018-01-06 16:19:06 +01:00
main.sh Add files via upload 2017-08-21 08:55:46 +02:00
mkdeb.sh Update mkdeb.sh 2017-08-25 17:09:29 +02:00
mkpackage.sh Update mkpackage.sh 2017-12-26 12:07:59 +01:00
README.md Update README.md 2018-01-06 14:40:19 +01:00
readrequest.sh Add files via upload 2017-08-21 08:55:46 +02:00
sendfile.sh Add files via upload 2017-08-21 08:55:46 +02:00
setowner.sh Update setowner.sh 2018-01-06 16:10:31 +01:00
start-socat.sh Update start-socat.sh 2018-01-06 16:14:49 +01:00
urlcheck.sh Update urlcheck.sh 2017-08-25 16:08:45 +02:00
writehtml.sh Add files via upload 2017-08-21 08:55:46 +02:00

simpsh-httpd

An usable bash-httpserver with easy configuration and PHP.

Installation as package

  1. Build package: cd ; curl https://raw.githubusercontent.com/niansa/simpsh-httpd/master/mkdeb.sh | bash -
  2. Install package: sudo dpkg --install ./simpsh-httpd.deb
  3. Edit /etc/config.sh:
  • FILES Here is the webroot (homefolder for the website).
  • HTMLTITLE This is the title for the filelist.
  • OUTFILE The finished Document will saved here. ${OUTFILEID} must be included!
  • DEFAULTCONTENTTYPE This Content-Type send the Server, if the requested File isn't a folder or phpfile.
  • PORT This port will used for listening.
  • WEBSITE This is the URL of the website (Example: "http://localhost:$PORT")
  • ERROR404 This is the error page 404
  • ERROR403 This is the error page 403
  1. Set permissions: sudo /usr/share/simpsh-httpd/setowner.sh
  2. Start simpsh-httpd: simpsh-httpd-socat -d

Installation

  1. Install following packages: bash socat dos2unix
  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.
  • OUTFILE The finished Document will saved here. ${OUTFILEID} must be included!
  • DEFAULTCONTENTTYPE This Content-Type send the Server, if the requested File isn't a folder or phpfile.
  • PORT This port will used for listening.
  • WEBSITE This is the URL of the website (Example: "http://localhost:$PORT")
  • ERROR404 This is the error page 404
  • ERROR403 This is the error page 403
  1. Make all files executable
  • chmod -R a+x ~/simpsh-httpd
  1. Start simpsh-httpd:
  • cd ~/simpsh-httpd
  • ./start-socat.sh -d
  1. Have fun with simpsh-httpd!

Tip: You don't need to restart simpsh-httpd after update/configchange!