From 00774b3f92bd6898ce56f41ce39074e9fe89c08e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 30 Sep 2023 09:38:18 +0000 Subject: Some fixes; new SERVER_NAME source; prepare for more config Signed-off-by: Laurent Bercot --- doc/tipideed.html | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'doc/tipideed.html') diff --git a/doc/tipideed.html b/doc/tipideed.html index 79c055b..2fa626a 100644 --- a/doc/tipideed.html +++ b/doc/tipideed.html @@ -138,14 +138,6 @@ operations itself.
The IP address the server is bound to. It will be passed as SERVER_ADDR to CGI scripts.
-
TCPLOCALPORT
-
The port the server is bound to. It will be passed as SERVER_PORT -to CGI scripts.
- -
TCPLOCALHOST
-
The domain name associated to the local IP address. It will be -passed as SERVER_NAME to CGI scripts.
-
TCPREMOTEIP
The IP address of the client. It will be passed as REMOTE_ADDR to CGI scripts.
@@ -163,6 +155,19 @@ 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).
+ +
TCPLOCALPORT
+
The port the server is bound to. It will be passed as SERVER_PORT +to CGI scripts unless the requested URI explicitly mentions a different port. +If this variable is absent, the default will be set to 80 in case of HTTP or +443 in the case of HTTPS.
+
TCPREMOTEHOST
The domain name associated to the IP address of the client. It will be passed as REMOTE_HOST to CGI scripts; if absent, the value of @@ -377,11 +382,11 @@ it on its stdout, to the client.
  • tipideed exits on EOF (when the client closes the connection), or when the client times out before sending a request, or after tipideed receives a -single HTTP/1.0 request, or when it has answered a request with a -Connection: close header, or when it encounters an error where it is -likely that the client will have no use for the connection anymore anyway -and exiting is simpler and cheaper — in which case tipideed adds -Connection: close to its last answer.
  • +single HTTP/1.0 request, or when it has executed into an NPH script, or when +it has answered a request with a Connection: close header. It also +exits when it encounters an error making it likely that the client will have +no use for the connection anymore anyway and exiting is simpler and cheaper; +in which case tipideed adds Connection: close to its last answer.
    -- cgit v1.3.1