USAGE

Back
Changelog

Version

user@machine:~ $ bshs --version BSHS 0.3.0 by IWearTwoHats (Rowan Denny) http://repo.somethingfunny.xyz/bshs


Usage

user@machine:~ $ bshs --help-all Basic Somewhat HTTP Server (BSHS) Usage: bshs [args] -h, --help bshs -h Print less information. --help-all bshs --help-all Show this message. -a, --allow-hostname bshs -a <hostname> Add a hostname to the allowed hostnames list. -p, --port bshs -p <port> Set the server port. -r, --route-dir bshs -r <hostname> <directory> Route a hostname to a directory on the system. -s, --source bshs -s <directory> Set the global directory route. -v, --version bshs -v Print the current version and other information. --changelog bshs --changelog Print the latest changelog. --get-log bshs --get-log <version> Print the changelog for a specific version. --all-versions bshs --all-versions Print all versions known to the changelog. --capture-path <host> <path> Add a path capture to a hostname. (see --get-log 0.1.8) --no-index Disable directory indexing. --no-post Do not accept POST requests. --prepend-get-index <path> --append-get-index <path> --prepend-post-index <path> --append-post-index <path> --prepend-exec-index <path> --append-exec-index <path> Information: Routing a hostname with -r will configure bshs to look in said directory when connecting from the desired hostname. Setting a global directory route with -s will route all incoming connections (with an allowed hostname) to the desired directory. Allowing a hostname with -a will configure bshs to allow said hostname to access the global directory route.