Skip To Content

INTEGRAL

Configure INTEGRAL Web Server

Jump directly to: 

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 (external page). 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:

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.

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.