INTEGRAL Web Server Configuration Keywords
Jump directly to:
MIMETYPE_SYSTEM_ALL_EXCEPT[]
MIMETYPE_SYSTEM_NONE_EXCEPT[]
MULTI These two keywords add a new system command handler to INTEGRAL Web Server's list of recognized MIME type handlers and enable it for the specified websites. MIMETYPE_SYSTEM_ALL_EXCEPT enables the handler for all websites except the ones listed within the square brackets. MIMETYPE_SYSTEM_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_SYSTEM_ALL_EXCEPT[0,1,5] activates the handler for all websites except #0, #1 and #5 while MIMETYPE_SYSTEM_ALL_EXCEPT[] activates the handler for all websites. Similarly, MIMETYPE_SYSTEM_NONE_EXCEPT[2,4] activates the handler only for websites #2 and #4 while MIMETYPE_SYSTEM_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 3 parts separated by a single colon (:). All three parts are required:
Part 1: MIME Type identifier, should always be text/html.
Part 2: Must always be *.sys.
Part 3: Either PASS or GZIP. PASS means that the response should always be delivered unchanged (i.e. without any additional compression), GZIP means that the response should always be delivered compressed in gzip format.
Here are a few examples that demonstrate how to use the MIMETYPE_SYSTEM_ALL_EXCEPT[] and MIMETYPE_SYSTEM_NONE_EXCEPT[] keywords.
Example 1a
!MIMETYPE_SYSTEM_ALL_EXCEPT[]=text/html:*.sys:PASS
Description: Add and enable a new system command handler for all websites served by INTEGRAL Web Server. Send the "text/html" MIME type when sending the output of system commands.
Example 1b
!MIMETYPE_SYSTEM_NONE_EXCEPT[]=text/html:*.sys:PASS
Description: Add a new system command handler but don't enable it for any website served by INTEGRAL Web Server. Send the "text/html" MIME type when sending the output of system commands. Note that INTEGRAL Web Server will not be able to send the output of any system commands if the handler is set up exactly as shown here (i.e. without any exception sites). However, as soon as the first exception site is included within the square brackets, the delivery specification after the equal sign will become relevant and effective.
Example 2a
!MIMETYPE_SYSTEM_ALL_EXCEPT[10,11,12]=text/html:*.sys:PASS
Description: Same as Example 1a except that the system command handler is not enabled for websites #10, #11 and #12.
Example 2b
!MIMETYPE_SYSTEM_NONE_EXCEPT[10,11,12]=text/html:*.sys:PASS
Description: Same as Example 1b except that the system command handler is only enabled for websites #10, #11 and #12.