1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00
simpsh-httpd/config.sh
2018-07-03 16:43:20 +00:00

23 lines
657 B
Bash

#! /bin/bash
# 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://localhost:$PORT")
WEBSITE="http://localhost:$PORT"
# Error code pages, they need to be HTML documents
ERROR404="${FILES}/404.html"
ERROR403="${FILES}/403.html"