openbsd-ports/www/hiawatha/patches/patch-man_hiawatha_1_in
bket 1c19684466 Update to hiawatha-10.8.
Switched back to mbedtls from ports.

OK juanfra@, sthen@
2018-04-06 14:43:28 +00:00

74 lines
4.1 KiB
Plaintext

$OpenBSD: patch-man_hiawatha_1_in,v 1.11 2018/04/06 14:43:28 bket Exp $
Index: man/hiawatha.1.in
--- man/hiawatha.1.in.orig
+++ man/hiawatha.1.in
@@ -165,12 +165,12 @@ Example: CGIextension = cgi
.B CGIhandler = <CGI handler>:<extension>[, <extension>, ...]
Specify the handler for a CGI extension. A handler is an executable which will run the CGI script.
.br
-Example: CGIhandler = /usr/bin/php5-cgi:php,php5
+Example: CGIhandler = ${LOCALBASE}/bin/php5-cgi:php,php5
.TP
.B CGIwrapper = <CGI wrapper>
Specify the wrapper for CGI processes. A secure CGI wrapper is included in the Hiawatha package (see cgi-wrapper(1) for more information).
.br
-Default = @CMAKE_INSTALL_FULL_SBINDIR@/cgi-wrapper Example: CGIwrapper = /bin/cgi-wrapper
+Default = @CMAKE_INSTALL_FULL_SBINDIR@/cgi-wrapper Example: CGIwrapper = ${PREFIX}/sbin/cgi-wrapper/cgi-wrapper
.TP
.B ChallengeClient = <threshold>, (httpheader|javascript), <ban-time>[, <secret>]
Challenge the client to verify that it's a real web browser and not an HTTP bot. When the total amount of connections reaches <threshold>, Hiawatha sends a response to the first request in a connection which will make the client resend the request, but now with a cookie. The cookie can be set via an HTTP Set-Cookie header or a Javascript. Further requests are only accepted when the client sends this cookie. Otherwise, the client is banned for <ban-time> seconds. This feature can be used to reduce the effects of a DDoS attack. The <secret> can be a random string of up to 20 characters (the rest is ignored) and is used to generate the cookie. When not set, Hiawatha will generate a random secret.
@@ -215,7 +215,7 @@ Example: HideProxy = 192.168.10.20
.B Include <filename>|<directory>
Include another configuration file or configuration files in a directory.
.br
-Example: Include /etc/hiawatha/hosts.conf
+Example: Include ${SYSCONFDIR}/hiawatha/hosts.conf
.TP
.B KickOnBan = yes|no
Close all other connections that originate from the same IP in case of a ban.
@@ -308,7 +308,7 @@ Example: RequestLimitMask = deny 192.168.0.1
.B ServerId = <userid>|<userid>:<groupid>[, <groupid>, ...]
The userid and groupid(s) the server will change to. If only a userid is specified, the groupid(s) will be looked up in /etc/passwd and /etc/group. The userid en groupid of user root are not allowed here. The userid or groupid can also be a name.
.br
-Default = 65534:65534 Example: ServerId = www-data
+Default = 579:579 Example: ServerId = _hiawatha
.TP
.B ServerString = <text>
The text behind 'Server:' in the HTTP header of a response. Use 'none' to completely remove the Server string from the HTTP header.
@@ -675,7 +675,7 @@ Example: ScriptAlias = /script.cgi:/usr/lib/script.cgi
.B ShowIndex = yes|no|<XSLT file with full path>|xml
Return a directory listing in HTML format for a directory request when the startfile does not exist. If you want to change the index layout completely, specify the path of a XSLT file. If the XSLT file is not found or 'xml' is used, Hiawatha will output the XML of the directory index. An example of the XML output can be found in extra/index.xml inside the source package.
.br
-Default = no Example: ShowIndex = /etc/hiawatha/index.xslt
+Default = no Example: ShowIndex = ${SYSCONFDIR}/hiawatha/index.xslt
.br
(requires that Hiawatha was not compiled with -DENABLE_XSLT=off)
@@ -1066,7 +1066,7 @@ and
(only valid in the root directory of a website)
.SH MIMETYPES
-Specify the mimetypes of files in /etc/hiawatha/mimetypes.conf.
+Specify the mimetypes of files in ${SYSCONFDIR}/hiawatha/mimetypes.conf.
.TP
.B <mimetype> <extension> [<extension> ...]
Example: image/jpeg jpg jpeg jpe
@@ -1086,13 +1086,13 @@ Unban all IP addresses.
Clear the internal cache (requires that Hiawatha was not compiled with -DENABLE_CACHE=off).
.SH FILES
-.B /usr/sbin/hiawatha
+.B ${PREFIX}/sbin/hiawatha
.br
-.B /etc/hiawatha/hiawatha.conf
+.B ${SYSCONFDIR}/hiawatha/hiawatha.conf
.br
-.B /etc/hiawatha/mime.types
+.B ${SYSCONFDIR}/hiawatha/mime.types
.br
-.B /etc/hiawatha/cgi-wrapper.conf
+.B ${SYSCONFDIR}/hiawatha/cgi-wrapper.conf
.SH SEE ALSO