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
.gitlab-ci.yml | ||
ci-test.sh | ||
config.sh | ||
filelist.sh | ||
htmlfilelist.sh | ||
httpheaders.sh | ||
init.sh | ||
LICENSE.md | ||
main.sh | ||
mkdeb.sh | ||
mkpackage.sh | ||
README.md | ||
readrequest.sh | ||
sendfile.sh | ||
start-socat.sh | ||
urlcheck.sh | ||
writehtml.sh |
simpsh-httpd
An usable bash-httpserver with easy configuration and PHP.
Recomended: Release installation
- Download a release from the Tags
- Follow step 4 and 5 of "Installation as package" if you selected to download the Prebuild Debian package. Otherwise follow step 3-6 of "Standart installation"
Installation as package (Debian based distros only)
- Install build dependencies:
sudo apt install fakeroot
- Build package:
cd ; curl https://gitlab.com/niansa/simpsh-httpd/raw/master/mkdeb.sh | bash -
- Install package:
sudo dpkg --install ./simpsh-httpd.deb && sudo apt -f install
- Edit /etc/simpsh-httpd/config.sh:
sudoedit /etc/simpsh-httpd/config.sh
:
FILES
Here is the webroot (homefolder for the website)HTMLTITLE
This is the title for the filelistOUTFILE
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 phpfilePORT
This port will used for listeningWEBSITE
This is the URL of the website (Example: "http://localhost:$PORT")ERROR404
This is the error page 404ERROR403
This is the error page 403
- Start simpsh-httpd:
simpsh-httpd-socat -d
Standart installation
- Install following packages:
bash socat dos2unix
- Download simpsh-httpd:
$ cd ~
$ git clone https://github.com/niansa/simpsh-httpd.git
$ cd ./simpsh-httpd
- Edit ./config.sh with options as shown in "Installation as package" at step 4: ‛nano ./config.sh‛
- Make all files executable
chmod -R a+x ~/simpsh-httpd
- Start simpsh-httpd:
cd ~/simpsh-httpd
./start-socat.sh -d
- Have fun with simpsh-httpd!
Tip: You don't need to restart simpsh-httpd after update/configchange!