Configure INTEGRAL Web Server
Jump directly to:
- Overview
- Sample Configuration
- Configuration File Structure
- Configuration Keywords
- Back to Configuration Guide
Overview
Assuming that <integral_extract_dir> is the directory where you extracted the INTEGRAL ZIP archive, the web server's configuration files will be located in the following directory:
<integral_extract_dir>/exec/config/websrv/
This directory contains at minimum the default.inf file. This file holds the configuration settings for INTEGRAL Web Server and the default INTEGRAL website. If there are any additional websites, this directory will also contain site-specific configuration files named site_001.inf, site_002.inf, site_003.inf etc. Each site-specific configuration file holds the configuration settings for one additional website. Note that the name and location of these site-specific configuration files can be changed by editing the default.inf file.
Edit your web server's configuration files if you wish to modify the port number(s) on which the web server listens, add additional sites, remove existing sites, or change any other server and/or site settings. All configuration files are standard UTF-8 text files that can be edited using any text editor.
Sample Configuration
Web Server and Default Site (default.inf)
#--- SERVER ----------------------------------- #General Settings !WEBSRV_LOG_DEBUG_LEVEL=0 !WEBSRV_PORT_HTTP=80 !WEBSRV_PORT_HTTPS=443 !WEBSRV_EXTRA_SITE=config/websrv/site_001.inf !WEBSRV_EXTRA_SITE=config/websrv/site_002.inf !WEBSRV_TIMEOUT_SECONDS=10 !WEBSRV_LIFETIME_SECONDS=20 !WEBSRV_WORKERS=20 !WEBSRV_WORKER_STACKSIZE_BYTES=256000 !WEBSRV_ENABLE_AUTHCODE_GET=P32AQ2143E8PU3A !WEBSRV_ENABLE_AUTHCODE_SET=C41E7UT231EQ331 !WEBPROXY_HTTP_ALL_EXCEPT[]=127.0.0.1:10000/0/29/255/4/4/15/15 !WEBPROXY_HTTP_ALL_EXCEPT[]=127.0.0.1:10001/0/29/255/3/3/15/15 #Integral Engine Settings !INTEGRAL_PATH=./ !INTEGRAL_MODE=PROCESS !INTEGRAL_PROCESS=integral-server~ !INTEGRAL_WORKERS=3 !INTEGRAL_MONITOR_SECONDS=2 !INTEGRAL_MONITOR_PULSE=0 #MIME Types !MIMETYPE_STATIC_ALL_EXCEPT[]=text/html:*.htm:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=text/html:*.html:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/bmp:*.bmp:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/jpg:*.jpg:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/jpeg:*.jpeg:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/ico:*.ico:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/gif:*.gif:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/png:*.png:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=image/svg+xml:*.svg:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=text/css:*.css:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=text/plain:*.txt:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=application/gzip:*.gz:PASS !MIMETYPE_STATIC_ALL_EXCEPT[]=application/zip:*.zip:PASS !MIMETYPE_STATIC_ALL_EXCEPT[]=application/pdf:*.pdf:PASS:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=text/javascript:*.js:GZIP:1209600 !MIMETYPE_STATIC_ALL_EXCEPT[]=video/webm:*.webm:PASS !MIMETYPE_STATIC_ALL_EXCEPT[]=video/mp4:*.mp4:PASS !MIMETYPE_STATIC_ALL_EXCEPT[]=video/ogg:*.ogg:PASS !MIMETYPE_STCMPR_ALL_EXCEPT[]=image/svg+xml:*.svg.gz:PASS:1209600 !MIMETYPE_SYSTEM_NONE_EXCEPT[1]=text/html:*.sys:PASS !MIMETYPE_INTEGRAL_ALL_EXCEPT[0]=text/html:*.i:AUTO !MIMETYPE_WEBPROXY_GENERAL_ALL_EXCEPT[]=text/html:*.php:PASS:0:0 #--- SITE 000 ----------------------------------- #General Settings !WEBSITE_PATH=../integral/websites/000-default/ !WEBSITE_INDEX=index.htm !WEBSITE_MODE=STANDARD !WEBSITE_LOG=system/log/site_000.log !WEBSITE_PREFIX=0 #Integral Engine Settings !INTEGRAL_ERROR_REPORT_LEVEL=2 !INTEGRAL_TIMEOUT_SECONDS=10 #Limits !LIMIT_MAX_SIZE_DOWNLOAD=0 !LIMIT_MAX_SIZE_COMPRESS=100000000 !LIMIT_PATH_PREFIX_U=system/tmp/dw00000_ #Caching !CACHE_EXPIRY_OUTPUT_SECONDS_GET=10 !CACHE_EXPIRY_OUTPUT_SECONDS_POST=0 !CACHE_EXPIRY_BYTECODE_SECONDS=20 #Error Pages !PAGE_401_UNAUTHORIZED=config/websrv/content/unauthorized.htm !PAGE_403_FORBIDDEN=config/websrv/content/forbidden.htm !PAGE_404_NOTFOUND=config/websrv/content/notfound.htm !PAGE_504_TIMEOUT=config/websrv/content/timeout.htm !PAGE_WEB_SERVER=config/websrv/content/server.htm # END OF FILE
First Additional Site (site_001.inf)
#--- SITE 001 ----------------------------------- !BINDINGS=test.example.com,testing.example.com #General Settings !WEBSITE_PATH=../integral/websites/001-testing/ !WEBSITE_INDEX=index.htm !WEBSITE_MODE=STANDARD !WEBSITE_LOG=system/log/site_001.log !WEBSITE_PREFIX=1 #Certificates !CERT_FILES_CRT_CHN_KEY[test.example.com]=config/websrv/certificates/ssl_example_com-test. !CERT_FILES_CRT_CHN_KEY[testing.example.com]=config/websrv/certificates/ssl_example_com-test. #Integral Engine Settings !INTEGRAL_ERROR_REPORT_LEVEL=2 !INTEGRAL_TIMEOUT_SECONDS=15 #Limits !LIMIT_MAX_VIDEO_MEMORY=26730000 !LIMIT_MAX_SIZE_DOWNLOAD=0 !LIMIT_MAX_SIZE_COMPRESS=100000000 !LIMIT_PATH_PREFIX_U=system/tmp/dw00001_ !LIMIT_PATH_PREFIX_R=../integral/websites/001-testing/public/../../../docs-basic/ !LIMIT_PATH_PREFIX_R=../integral/websites/001-testing/public/../../../common/includes/ !LIMIT_PATH_PREFIX_W=../integral/websites/001-testing/public/../private/data/ !LIMIT_PATH_PREFIX_R=../integral/websites/001-testing/public/../private/ !LIMIT_PATH_PREFIX_R=../integral/websites/001-testing/public/ #Caching !CACHE_EXPIRY_OUTPUT_SECONDS_GET=10 !CACHE_EXPIRY_OUTPUT_SECONDS_POST=0 !CACHE_EXPIRY_BYTECODE_SECONDS=20 #Error Pages !PAGE_401_UNAUTHORIZED=config/websrv/content/unauthorized.htm !PAGE_403_FORBIDDEN=config/websrv/content/forbidden.htm !PAGE_404_NOTFOUND=config/websrv/content/notfound.htm !PAGE_504_TIMEOUT=config/websrv/content/timeout.htm !PAGE_WEB_SERVER=config/websrv/content/server.htm # END OF FILE
Second Additional Site (site_002.inf)
#--- SITE 002 ----------------------------------- !BINDINGS=example.com,www.example.com #General Settings !WEBSITE_PATH=../integral/websites/002-production/ !WEBSITE_INDEX=index.i !WEBSITE_MODE=PASS_URL !WEBSITE_LOG=system/log/site_002.log !WEBSITE_PREFIX=2 #Certificates !CERT_FILES_CRT_CHN_KEY[example.com]=config/websrv/certificates/ssl_example_com-prod. !CERT_FILES_CRT_CHN_KEY[www.example.com]=config/websrv/certificates/ssl_example_com-prod. #Integral Engine Settings !INTEGRAL_ERROR_REPORT_LEVEL=2 !INTEGRAL_TIMEOUT_SECONDS=10 #Limits !LIMIT_MAX_SIZE_DOWNLOAD=0 !LIMIT_MAX_SIZE_COMPRESS=100000000 !LIMIT_PATH_PREFIX_U=system/tmp/dw00002_ !LIMIT_PATH_PREFIX_R=../integral/websites/002-production/public/../../../docs-basic/ !LIMIT_PATH_PREFIX_R=../integral/websites/002-production/public/../../../common/includes/ !LIMIT_PATH_PREFIX_W=../integral/websites/002-production/public/../private/data/ !LIMIT_PATH_PREFIX_R=../integral/websites/002-production/public/../private/ !LIMIT_PATH_PREFIX_R=../integral/websites/002-production/public/ #Caching !CACHE_EXPIRY_OUTPUT_SECONDS_GET=10 !CACHE_EXPIRY_OUTPUT_SECONDS_POST=0 !CACHE_EXPIRY_BYTECODE_SECONDS=20 #Error Pages !PAGE_401_UNAUTHORIZED=config/websrv/content/unauthorized.htm !PAGE_403_FORBIDDEN=config/websrv/content/forbidden.htm !PAGE_404_NOTFOUND=config/websrv/content/notfound.htm !PAGE_504_TIMEOUT=config/websrv/content/timeout.htm !PAGE_WEB_SERVER=config/websrv/content/server.htm # END OF FILE
Configuration File Structure
When parsing its configuration files, INTEGRAL Web Server reads one line at a time. The parsing logic is rather simple:
- The CR, LF or CR+LF character serves as the newline character.
- Lines that start with an exclamation mark (!) denote configuration statements. Configuration statements obey the following syntax: immediately after the exclamation mark is a configuration keyword, then the equal sign (=) and finally, the value of the configuration keyword, which is either a string or a number. Configuration statements should not contain any tabs or space characters.
- Lines that start with any other character denote comments. Comments are optional but useful. To make it more clear that a text line is a comment, we recommend placing the # character at its beginning. Comments are completely ignored by INTEGRAL Web Server.
- Any number of empty lines can be inserted between comments or configuration statements to improve readability. These lines are also ignored by INTEGRAL Web Server.
Refer to the following links for a detailed description of each configuration keyword. Note that some configuration keywords are designed to be used multiple times in the same configuration file (which means their effect is additive). These keywords are indicated with the label MULTI. All other keywords should be defined only once per configuration file; in the event they are defined multiple times, then the most recent definition will supersede any previous definitions of that keyword in the same configuration file.
Explanation of Configuration Keywords
Server Configuration Keywords
Server Configuration Keywords can appear only in the default.inf file and their purpose is to configure the web server. They should not appear in site-specific configuration files. If they do, they will be ignored.
- WEBSRV_LOG_DEBUG_LEVEL
- WEBSRV_ADDR_PORT_HTTP MULTI
- WEBSRV_ADDR_PORT_HTTPS MULTI
- WEBSRV_PORT_HTTP MULTI
- WEBSRV_PORT_HTTPS MULTI
- WEBSRV_EXTRA_SITE MULTI
- WEBSRV_TIMEOUT_SECONDS
- WEBSRV_LIFETIME_SECONDS — NEW
- WEBSRV_WORKERS
- WEBSRV_WORKER_STACKSIZE_BYTES
- WEBSRV_ENABLE_AUTHCODE_GET
- WEBSRV_ENABLE_AUTHCODE_SET
- WEBPROXY_HTTP_ALL_EXCEPT[] MULTI — NEW
- WEBPROXY_HTTP_NONE_EXCEPT[] MULTI — NEW
- WEBPROXY_HTTPS_ALL_EXCEPT[] MULTI — NEW
- WEBPROXY_HTTPS_NONE_EXCEPT[] MULTI — NEW
- INTEGRAL_PATH
- INTEGRAL_MODE
- INTEGRAL_PROCESS
- INTEGRAL_WORKERS
- INTEGRAL_MONITOR_SECONDS
- INTEGRAL_MONITOR_PULSE
- MIMETYPE_STATIC_ALL_EXCEPT[] MULTI
- MIMETYPE_STATIC_NONE_EXCEPT[] MULTI
- MIMETYPE_STCMPR_ALL_EXCEPT[] MULTI
- MIMETYPE_STCMPR_NONE_EXCEPT[] MULTI
- MIMETYPE_SYSTEM_ALL_EXCEPT[] MULTI
- MIMETYPE_SYSTEM_NONE_EXCEPT[] MULTI
- MIMETYPE_INTEGRAL_ALL_EXCEPT[] MULTI
- MIMETYPE_INTEGRAL_NONE_EXCEPT[] MULTI
- MIMETYPE_WEBPROXY_GENERAL_ALL_EXCEPT[] MULTI — NEW
- MIMETYPE_WEBPROXY_GENERAL_NONE_EXCEPT[] MULTI — NEW
- MIMETYPE_WEBPROXY_INTEGRAL_ALL_EXCEPT[] MULTI — NEW
- MIMETYPE_WEBPROXY_INTEGRAL_NONE_EXCEPT[] MULTI — NEW
Website Configuration Keywords
Website Configuration Keywords can be defined in the default.inf file (to configure the default INTEGRAL website) and in site-specific configuration files.
- BINDING MULTI
- BINDINGS MULTI
- WEBSITE_PATH
- WEBSITE_INDEX
- WEBSITE_MODE
- WEBSITE_LOG
- WEBSITE_PREFIX
- CERT_FILES_CRT_CHN_KEY[] MULTI
- CERT_FILES_CRT_KEY[] MULTI
- INTEGRAL_ERROR_REPORT_LEVEL
- INTEGRAL_TIMEOUT_SECONDS
- LIMIT_MAX_VIDEO_MEMORY
- LIMIT_MAX_SIZE_DOWNLOAD
- LIMIT_MAX_SIZE_COMPRESS
- LIMIT_PATH_PREFIX_R MULTI
- LIMIT_PATH_PREFIX_W MULTI
- LIMIT_PATH_PREFIX_U MULTI
- CACHE_EXPIRY_OUTPUT_SECONDS_GET
- CACHE_EXPIRY_OUTPUT_SECONDS_POST
- CACHE_EXPIRY_BYTECODE_SECONDS
- PAGE_401_UNAUTHORIZED
- PAGE_403_FORBIDDEN
- PAGE_404_NOTFOUND
- PAGE_504_TIMEOUT
- PAGE_WEB_SERVER