INTEGRAL Web Server Configuration Keywords
Jump directly to:
MIMETYPE_WEBPROXY_GENERAL_ALL_EXCEPT[]
MIMETYPE_WEBPROXY_GENERAL_NONE_EXCEPT[]
MULTI These two keywords add a new general proxy handler to INTEGRAL Web Server's list of recognized MIME type handlers and enable it for the specified websites. MIMETYPE_WEBPROXY_GENERAL_ALL_EXCEPT enables the handler for all websites except the ones listed within the square brackets. MIMETYPE_WEBPROXY_GENERAL_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.
Part 2: File extension to be associated with the above MIME Type, in the format *.<extension>. For example: *.php, *.zip, etc.
Part 3: Should always be set to PASS.
Part 4: An integer that specifies how the request should be proxied to one of the remote HTTP servers. This integer must be one of the following:
0 = General purpose proxy, suitable for any file type (for example, *.i, *.php, etc). The request is always proxied to a remote server, even if the requested file does not exist locally.
1 = Same as 0, however the requested file must exist locally. If the requested file does not exist locally, the request will fail.
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_GENERAL_ALL_EXCEPT[0]=text/html:*.php:PASS:0:0
Example 2
!MIMETYPE_WEBPROXY_GENERAL_ALL_EXCEPT[0]=text/html:*.php:PASS:1:0