OpenLiteSpeed Web Server Users' Manual

Version 1.4 Rev. 2

Web Server

Table of Contents

Web Server

Name | Address | Max Connections | Keep Alive Timeout (secs) | Environment | Initial Request Timeout (secs) | Retry Timeout (secs) | Response Buffering | 

NameGo to top
Description: A unique name for this external application. You will refer to it by this name when you use it in other parts of the configuration.
AddressGo to top
Description: HTTP or HTTPS address used by the external web server.
Syntax: IPv4 or IPV6 address(:port). Add "https://" in front if the external web server uses https. Port is optional if the external web server uses the standard ports 80 or 443.
Example: 192.168.0.10
127.0.0.1:5434
https://10.0.8.9
https://127.0.0.1:5438
Tips: [Security] If you proxy to another web server running on the same machine, set the IP address to localhost or 127.0.0.1, so the external application is inaccessible from other machines.
Max ConnectionsGo to top
Description: Specifies the maximum number of concurrent connections that can be established between the server and an external application. This setting controls how many requests can be processed concurrently by an external application, however, the real limit also depends on the external application itself. Setting this value higher will not help if the external application is not fast enough or cannot scale to a large number of concurrent requests.
Syntax: Integer number
Tips: [Performance] Setting a high value does not directly translate to higher performance. Setting the limit to a value that will not overload the external application will provide the best performance/throughput.
Keep Alive Timeout (secs)Go to top
Description: Specifies the maximum time to keep an idle persistent connection open. When set to "-1", the connection will never timeout. When set to greater than or equal to 0, the connection will be closed after this time in seconds has passed.
Syntax: int
EnvironmentGo to top
Description: Specifies extra environment variables for the external application.
Syntax: Key=value. Multiple variables can be separated by "ENTER"
Initial Request Timeout (secs)Go to top
Description: Specifies the maximum time in seconds the server will wait for the external application to respond to the first request over a new established connection. If the server does not receive any data from the external application within this timeout limit, it will mark this connection as bad. This helps to identify communication problems with external applications as quickly as possible. If some requests take longer to process, increase this limit to avoid 503 error messages.
Syntax: Integer number
Retry Timeout (secs)Go to top
Description: Specifies the period of time that the server waits before retrying an external application that had a prior communication problem.
Syntax: Integer number
Response BufferingGo to top
Description: Specifies whether to buffer responses received from external applications. If a "nph-" (Non-Parsed-Header) script is detected, buffering is turned off for responses with full HTTP headers.
Syntax: Select from drop down list