{"repo":"remileduc/sherver","free":true,"listed":false,"github":"https://github.com/remileduc/sherver","clone":"git clone https://github.com/remileduc/sherver.git","description":"Pure Bash lightweight web server.","language":"Shell","stars":352,"topics":["bash","web","server","lightweight"],"license":"MIT","category":"cli-tools","readme_excerpt":"Sherver ======= Pure Bash lightweight web server. Easy solution to setup a local website without any server configuration!!! This is inspired by bashttpd. Though, the behavior is entirely different. See below for more information. Presentation - How to run - Requirements - Features How to use - Serve static pages - Serve files - Serve dynamic pages - Template mechanism - POST requests How to use (Expert) - Logs - Dispatcher - HTTPS - Run as a service (daemon) - Sandboxing Example About Security Why Sherver? Tests License? Presentation ------------ How to run ### Just clone and run ./sherver.sh . Then, you should be able to connect to localhost:8080. You can pass the port to listen on as a parameter: ./sherver.sh 8080 (default is 8080 ), and --debug before it to get verbose logs: ./sherver.sh --debug 8080 . ./sherver.sh --version prints the version and exits; CHANGELOG.md says what each one brought. Requirements ### This is made to run with Bash . It may not work in another shell. The following tools need to be present in the system (note that they are all part of the default installation of Debian): - socat to run the server. - you can use netcat instead, but it doesn't work well with concurrent HTTP requests - date , realpath , stat and cat — from coreutils on a GNU system, but busybox's versions are enough (see below) - optionnal: envsubst if you want to do templating (comes in the package gettext-base in Debian, or something like gettext-envsubst as a smaller package in Al","default_branch":null,"files":null,"tree":[],"storefront":"/r/remileduc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remileduc/sherver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}