mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
32 lines
No EOL
1,020 B
Bash
Executable file
32 lines
No EOL
1,020 B
Bash
Executable file
#! /bin/bash
|
|
|
|
# The web server is running under this user (requires to start the socat script as root!). This option may be empty
|
|
SUUSER=""
|
|
|
|
# Here is the webroot (homefolder for the website)
|
|
FILES="/var/www/html/"
|
|
|
|
# Title of the file list, the URL is inside $URL
|
|
HTMLTITLE="Datei: $URL"
|
|
|
|
# The finished Document will saved here. ${OUTFILEID} must be included!
|
|
OUTFILE="/tmp/simpsh-html.${OUTFILEID}.html"
|
|
|
|
# This Content-Type send the Server, if the requested File isn't a folder or phpfile
|
|
DEFAULTCONTENTTYPE="text/html"
|
|
|
|
# This port will used for listening
|
|
PORT=8888
|
|
|
|
# This is the URL of the website (Example: "http://example.org:$PORT")
|
|
WEBSITE="http://localhost:$PORT"
|
|
|
|
# Should PHP be enabled? You need to install php-cli package to use it. May be false or true
|
|
ENABLE_PHP="false"
|
|
|
|
# Should Markdown be enabled? You need to install pandoc package to use it. May be false or true
|
|
ENABLE_MARKDOWN="false"
|
|
|
|
# Error code pages, they need to be HTML documents
|
|
ERROR404="${FILES}/404.html"
|
|
ERROR403="${FILES}/403.html" |