INTEGRAL Web Server Configuration Keywords
Jump directly to:
MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[]
MIMETYPE_WEBPROXY_INTEGRAL_NONE_EXCEPT[]
MULTI These two keywords add a new INTEGRAL proxy handler to INTEGRAL Web Server's list of recognized MIME type handlers and enable it for the specified websites. MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT enables the handler for all websites except the ones listed within the square brackets. MIMETYPE_WEBPROXY_INTEGRAL_NONE_EXCEPT enables the handler 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, MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[0,1,5] activates the handler for all websites except #0, #1 and #5 while MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[] activates the handler for all websites. Similarly, MIMETYPE_WEBPROXY_INTEGRAL_NONE_EXCEPT[2,4] activates the handler only for websites #2 and #4 while MIMETYPE_WEBPROXY_INTEGRAL_NONE_EXCEPT[] does not activate the handler 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 delivery specification. The delivery specification consists of 4 or 5 parts separated by a single colon (:). The first four parts are required, the last one is optional:
Part 1: MIME Type identifier, as defined by IANA's official registry of MIME types
. For example: text/html, image/png, image/svg+xml, text/css, application/zip etc. The specified MIME type will be sent whenever the INTEGRAL program does not set any other program-specific MIME type. In other words, this is the default MIME type when serving the output of INTEGRAL programs.
Part 2: File extension (used for INTEGRAL DSL programs) to be associated with the above MIME Type, in the format *.<extension>. For example: *.i or *.integral.
Part 3: One of the three supported delivery methods: PASS, GZIP, or AUTO. PASS means that the INTEGRAL program output should always be delivered unchanged (i.e. without any additional compression or special handling), GZIP means that the INTEGRAL program output should always be delivered compressed in gzip format, and AUTO means that the output delivery method should be chosen by INTEGRAL Web Server automatically. AUTO is recommended.
Part 4: An integer that specifies the method that INTEGRAL Web Server will use to determine if the request should be processed locally or proxied to one of the remote HTTP servers. This integer must be one of the following:
-3 = INTEGRAL Web Server will use the "50:50" load balancing method to decide if the request should be processed locally or proxied. This decision is made before INTEGRAL Web Server checks its local dynamic output cache. Due to this, about 50% of all the request will be processed locally; the remaining 50% will be proxied to one of the remote HTTP servers.
3 = Same as method -3 above, but the decision is made after INTEGRAL Web Server checks its local dynamic output cache. This means that if the output is already stored in the dynamic output cache, it will be sent to the client immediately, without the need to process the request locally or proxy it to a remote server.
-4 = INTEGRAL Web Server will query the current utilization of the local INTEGRAL Server to decide if the request should be processed locally or proxied. This decision is made before INTEGRAL Web Server checks its local dynamic output cache. If the utilization of the local INTEGRAL Server is low, the request will be processed locally; otherwise the request will be proxied to one of the remote HTTP servers.
4 = Same as method -4 above, but the decision is made after INTEGRAL Web Server checks its local dynamic output cache. This means that if the output is already stored in the dynamic output cache, it will be sent to the client immediately, without the need to process the request locally or proxy it to a remote server.
See WEBPROXY_HTTP_ALL_EXCEPT and WEBPROXY_HTTP_NONE_EXCEPT keywords for more information on how to register HTTP proxy connections and enable them for a site.
Part 5 (optional): Proxy Connection Group ID. An integer in the -1-65535 range. This value can be used to select one or more proxy connections based on their Group ID. See Group ID of the WEBPROXY_HTTP_ALL_EXCEPT and WEBPROXY_HTTP_NONE_EXCEPT keywords for details. If any enabled proxy connection is suitable for this MIME type handler, Proxy Connection Group ID should be set to -1 or omitted altogether.
Example 1
!MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[0]=text/html:*.i:PASS:-3:0
Example 2
!MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[0]=text/html:*.i:PASS:3:0
Example 3
!MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[0]=text/html:*.i:PASS:-4
Example 4
!MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[0]=text/html:*.i:PASS:4