From 8d66c8c5cac310958fa64e3f62b828ea960202ba Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 30 Sep 2023 10:08:23 +0000 Subject: Doc update Signed-off-by: Laurent Bercot --- doc/tipideed.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'doc/tipideed.html') diff --git a/doc/tipideed.html b/doc/tipideed.html index 2fa626a..8f080bc 100644 --- a/doc/tipideed.html +++ b/doc/tipideed.html @@ -158,9 +158,9 @@ uses them to get more information.
TCPLOCALHOST
The default domain name associated to the local IP address. It will be passed as SERVER_NAME to CGI scripts when the requested URI does -not mention a Host, i.e. in HTTP/1.0 requests. If this variable is absent, -the default will be set to the local IP address itself (between square -brackets if IPv6).
+not mention a Host, i.e. in HTTP/1.0 requests without a full request URL. +If this variable is absent, the default will be set to the local IP address +itself (between square brackets if IPv6).
TCPLOCALPORT
The port the server is bound to. It will be passed as SERVER_PORT @@ -322,9 +322,17 @@ your /etc/passwd file, tipideed will keep it safe.

HTTP/1.0 does not have the concepts of virtual hosts. For HTTP/1.0 -requests that do not provide a full URL, tipideed will use a default -host name of @ (at), so documents will likely be looked for -under @:80 or @:443. +requests that do not provide a full URL, tipideed will use the value +it reads from the TCPLOCALHOST variable, which is normally the result +of a reverse DNS lookup on the server's address. You can override the +lookup and provide your own value by giving the -l option to +s6-tcpserver-access or +s6-tlsserver. +If TCPLOCALHOST does not exist or is empty, a fallback value of +@ (at), will be used. So if you aren't calling +s6-tcpserver-access +at all, your documents will most likely be accessible for HTTP/1.0 clients under +@:80 or @:443.

-- cgit v1.3.1