INTEGRAL Web Server Configuration Keywords
Jump directly to:
WEBPROXY_HTTP_ALL_EXCEPT[]
WEBPROXY_HTTP_NONE_EXCEPT[]
MULTI These two keywords register a new HTTP proxy connection and enable it for the specified websites. WEBPROXY_HTTP_ALL_EXCEPT enables the proxy connection for all websites except the ones listed within the square brackets. WEBPROXY_HTTP_NONE_EXCEPT enables the proxy connection only for those websites that are listed within the square brackets.
The websites listed within the square brackets are called exception sites and are specified by their unique order number. The default INTEGRAL website is always website #0, the first additional website spawned using the WEBSRV_EXTRA_SITE keyword is website #1, the second one is #2 etc. If multiple exception sites need to be listed, they are separated by a single comma. If there are no exception sites, nothing should be included inside the square brackets (but the brackets themselves must still be present). For example, WEBPROXY_HTTP_ALL_EXCEPT[0,1,5] activates the proxy connection for all websites except #0, #1 and #5 while WEBPROXY_HTTP_ALL_EXCEPT[] activates the proxy connection for all websites. Similarly, WEBPROXY_HTTP_NONE_EXCEPT[2,4] activates the proxy connection only for websites #2 and #4 while WEBPROXY_HTTP_NONE_EXCEPT[] does not activate the proxy connection for any site.
Immediately after the closing square bracket is the equal sign (=) followed by the value of the keyword. This value is a complex string called a proxy specification. The proxy specification consists of 8 parts separated by a single forward slash (/).
Part 1: IP address and port number of the remote server. The IP address can be specified as an IPv4 or IPv6 address, or as a host name. The IP address and port number are separated by colon (:). If the IP address is in IPv6 format, it must be enclosed in square brackets.
Part 2: Group ID. A non-negative integer in the 0-65535 range that represents a group to which the proxy connection is attached to.
Part 3: Attributes. A bitmask that can be used to specify the features of the proxy connection:
If 1st bit is set, then the remote server is Single-Threaded; otherwise it is Multi-Threaded. When a remote server is Single-Threaded, INTEGRAL Web Server will only support a single concurrent proxy connection to it. When a remote server is Multi-Threaded, INTEGRAL Web Server will support many concurrent proxy connections to it.
If 2nd bit is set, then the proxy connection is backed by a Local Dynamic Output Cache; otherwise it is not. The lifetime of the local cache is governed by the site's CACHE_EXPIRY_OUTPUT_SECONDS_GET and CACHE_EXPIRY_OUTPUT_SECONDS_POST expiry values.
If 3rd bit is set, then the proxy connection uses a Single-Block transfer method; otherwise it may use Multi-Block.
If 4th bit is set, then the proxy connection sends the RECV-Shutdown signal to the remote server once all data is received; otherwise it does not.
If 5th bit is set, then the proxy connection sends the SEND-Shutdown signal to the remote server once all data is sent; otherwise it does not.
Part 4: Priority. This value will described in the future. Must be set to 255.
Part 5: Connect-Timeout of the proxy connection, in seconds. INTEGRAL Web Server must be able to connect to the remote server within Connect-Timeout seconds; if it takes longer the proxy connection will not succeed.
Part 6: Send-Timeout of the proxy connection, in seconds. If, during a proxy connection, no data can be sent to the remote server for more than Send-Timeout seconds, INTEGRAL Web Server will terminate the connection.
Part 7: Receive-Timeout of the proxy connection, in seconds. If, during a proxy connection, no data is received from the remote server for more than Receive-Timeout seconds, INTEGRAL Web Server will terminate the connection.
Part 8: Lifetime of the proxy connection, in seconds. If the total time the proxy connection is in use exceeds Lifetime seconds, INTEGRAL Web Server will terminate the connection.
Example
!WEBPROXY_HTTP_ALL_EXCEPT[2]=127.0.0.1:10000/0/29/255/4/4/15/15