From 21a066b4b972bd055b424a946ff1f80a939443c3 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 3 May 2020 12:01:13 +0200 Subject: Added redirect plugin, documentation --- README.txt | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 7748d0a..d8783af 100644 --- a/README.txt +++ b/README.txt @@ -9,6 +9,7 @@ Features * Virtual servers * Plugin interface * CGI interface +* FastCGI interface Configuration @@ -29,3 +30,175 @@ Configuration # systemctl status webserver or observe /var/log/syslog + + +Example Configuration +--------------------- + +An example configuration is included in the package. + + + www-data + www-data + 10 + /usr/lib/webserver/plugins + + + reichwein.it + reichwein.it + www.reichwein.it + blog.reichwein.it + + static-files + /var/www/homepage + + /etc/ssl/webserver/fullchain.pem + /etc/ssl/webserver/privkey.pem + + + + +
127.0.0.1
+ 80 + http +
+ +
::1
+ 80 + http +
+ +
127.0.0.1
+ 443 + https +
+ +
::1
+ 443 + https +
+
+
+ + +HTTP Auth +--------- + +For every plugin configuration (subdir in directory tree), an "auth" +configuration can be added for HTTP AUTH (basic). E.g.: + + + +Passwords are hashed with basic Unix crypt(). So don't make the configuration +file available to others. + +Passwords can be prepared by calling "webserver" with the parameter "-p": + +# webserver -p mypass3 +70cjNwWBtNpWw + + +Plugin Configuration +-------------------- + +Plugin: cgi +~~~~~~~~~~~ + +Configuration example: + + + cgi + /usr/lib/webserver/cgi-bin + + + +Plugin: fcgi +~~~~~~~~~~~~ + +Configuration example: + + + fcgi + 127.0.0.1:9000 + + + +Plugin: redirect +~~~~~~~~~~~~~~~~ + +Parameters: + + target: URL to redirect to + STATUS_CODE: Valid 3xx HTTP status code for redirection. Usually, one of: + 301 - Moved Permanently + 302 - Found (moved temporarily) + 303 - See Other + 307 - Temporary Redirect + 308 - Permanent Redirect + MESSAGE: Message included in reply, normally not visible in the protocol or to the user + +Configuration example: + + + redirect + https://blog.reichwein.it/ + 301 + Redirecting to antcom.de ... + + + +Plugin: static-files +~~~~~~~~~~~~~~~~~~~~ + +Configuration example: + + + static-files + /var/www/homepage + + + +Plugin: statistics +~~~~~~~~~~~~~~~~~~ + +Configuration example: + + + statistics + + + + +Plugin: webbox +~~~~~~~~~~~~~~ + +This plugin needs a combination of static-files (for statically served parts) +and webbox plugins (for dynamic contents). + +Configuration example: + + + static-files + /usr/lib/webbox/html + + + webbox + /home/rr/testbox + Testbox1 + 0 + + + + +Plugin: weblog +~~~~~~~~~~~~~~ + +Configuration example: + + + weblog + /home/reichwein/testblog + My Blog + Reichwein, Reichwein IT, Blog + + -- cgit v1.2.3