Reichwein.IT Webserver
======================
Features
--------
* Support for IPv4 and IPv6
* Support for HTTP and HTTPS via OpenSSL
* Virtual servers
* Plugin interface
* CGI interface
* FastCGI interface
Configuration
-------------
* Edit /etc/webserver.conf
* Enable in Debian:
# systemctl enable webserver.service
* Start:
# systemctl start webserver
* Query Status:
# systemctl status webserver
or observe /var/log/syslog
* Disable in Debian:
# systemctl disable webserver.service
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