SAP Web Dispatcher Sample Configuration

Multiple domain name, multiple real IP, multiple TCP Port, multiple backend system; connected as shown in the following scheme
Connection with four domain names and three real IPs
HTTP is redirected to HTTPS
Direct connection to backend system ITS via TCP port with SSL secure connection

 

webdispatcher_schema

 

Web Dispatcher system’s default profile file

DEAFULT.PFL

SAPSYSTEMNAME = WDP
OS_UNICODE = nuc
SAPGLOBALHOST = COMPANYDMZ
system/type = 
ssf/name = SAPSECULIB

#-----------------------------------------------------------------------
# Autostart
#-----------------------------------------------------------------------
Autostart = 1

 

Web Dispatcher system’s instance profile file

WDP_W00_COMPANYDMZ

SAPSYSTEMNAME = WDP
SAPGLOBALHOST = COMPANYDMZ
SAPSYSTEM = 00
INSTANCE_NAME = W00
DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
DIR_EXECUTABLE = $(DIR_CT_RUN)
DIR_PROFILE = $(DIR_INSTALL)\profile
_PF = $(DIR_PROFILE)\WDP_W00_COMPANYDMZ
SETENV_00 = PATH=$(DIR_EXECUTABLE);%PATH%

#-----------------------------------------------------------------------
# Configuration for large scenario
#-----------------------------------------------------------------------
icm/max_conn = 16384
icm/max_sockets = 16384
icm/req_queue_len = 6000
icm/min_threads = 100
icm/max_threads = 250
mpi/total_size_MB = 500
mpi/max_pipes = 21000

#-----------------------------------------------------------------------
# SAP Web Dispatcher Ports
#-----------------------------------------------------------------------
icm/server_port_0 = PROT=HTTP,HOST=COMPANYDMZ,PORT=81$$
icm/server_port_1 = PROT=HTTP,PORT=80,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_2 = PROT=HTTPS,PORT=443,TIMEOUT=180,PROCTIMEOUT=1800

icm/server_port_3 = PROT=HTTPS,PORT=1095,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_4 = PROT=HTTPS,PORT=1085,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_5 = PROT=HTTPS,PORT=2085,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_6 = PROT=HTTPS,PORT=1090,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_7 = PROT=HTTPS,PORT=1092,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_8 = PROT=HTTPS,PORT=1091,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_9 = PROT=HTTPS,PORT=1096,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_10 = PROT=HTTPS,PORT=2222,TIMEOUT=180,PROCTIMEOUT=1800
icm/server_port_11 = PROT=HTTP,PORT=8888,TIMEOUT=180,PROCTIMEOUT=1800

#icm/HTTP/admin_0 = PREFIX=/sap/admin,DOCROOT=$(DIR_DATA)$(DIR_SEP)icmandir,AUTHFILE=$(icm/authfile),PORT=81$$

icm/HTTP/mod_0 = PREFIX=/, FILE=$(DIR_INSTANCE)/sec/icm_filter_rules.txt

#-----------------------------------------------------------------------
# Start webdispatcher
#-----------------------------------------------------------------------
_WD = $(DIR_EXECUTABLE)\sapwebdisp$(FT_EXE)
Start_Program_00 = local $(_WD) pf=$(_PF)
ssl/ssl_lib = $(DIR_EXECUTABLE)$(DIR_SEP)$(FT_DLL_PREFIX)sapcrypto$(FT_DLL)
sec/libsapsecu = $(ssl/ssl_lib)
ssf/ssfapi_lib = $(ssl/ssl_lib)
SETENV_01 = SECUDIR=$(DIR_INSTANCE)/sec

#-----------------------------------------------------------------------
# SSL Parameters
#-----------------------------------------------------------------------
ssl/server_pse = $(DIR_INSTANCE)/sec/SAPSSLS.pse
wdisp/ssl_encrypt = 0
wdisp/system_conflict_resolution = 2 
wdisp/allow_multiple_matching_systems = true
wdisp/add_client_protocol_header = true
wdisp/add_xforwardedfor_header = false


wdisp/system_0 = SID=PRP, MSHOST=prp.company.local, MSPORT=8101
wdisp/system_1 = SID=PRD, MSHOST=prd.company.local, MSPORT=8101
wdisp/system_2 = SID=ERP, MSHOST=erp.company.local, MSPORT=8100
wdisp/system_3 = SID=ERQ, MSHOST=erq.company.local, MSPORT=8100
wdisp/system_4 = SID=ERD, MSHOST=erd.company.local, MSPORT=8100
wdisp/system_5 = SID=SRP, MSHOST=srp.company.local, MSPORT=8100
wdisp/system_6 = SID=SRQ, MSHOST=srq.company.local, MSPORT=8100
wdisp/system_7 = SID=SRD, MSHOST=srd.company.local, MSPORT=8100
wdisp/system_8 = SID=HRP, MSHOST=hrp.company.local, MSPORT=8100
wdisp/system_9 = SID=HRD, MSHOST=hrd.company.local, MSPORT=8100
wdisp/system_10 = SID=GFP, MSHOST=gfp.company.local, MSPORT=8101
wdisp/system_11 = SID=GFD, MSHOST=gfd.company.local, MSPORT=8101
wdisp/system_12 = SID=SOL, MSHOST=sol.company.local, MSPORT=8100
wdisp/system_13 = SID=EXT, EXTSRV=http://xxx.xxx.xxx.qpr:80, SRCSRV=*:8888


icm/HTTP/redirect_1 = PREFIX=/, FOR=fiori.companyweb.com, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html, HOST=fiori.companyweb.com
icm/HTTP/redirect_2 = PREFIX=/, FOR=fiori.companyweb.com:1096, TO=/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html, HOST=fiori.companyweb.com:1096

icm/HTTP/redirect_3 = PREFIX=/, FOR=portal.companyweb.com:1090, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=portal.companyweb.com:1090
icm/HTTP/redirect_4 = PREFIX=/, FOR=portal.companyweb.com:1091, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=portal.companyweb.com:1091
icm/HTTP/redirect_5 = PREFIX=/, FOR=portal.companyweb.com:1092, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=portal.companyweb.com:1092
icm/HTTP/redirect_6 = PREFIX=/, FOR=portal.companyweb.com:1085, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=portal.companyweb.com:1085
icm/HTTP/redirect_7 = PREFIX=/, FOR=portal.companyweb.com:2085, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=portal.companyweb.com:2085

icm/HTTP/redirect_8 = PREFIX=/, FOR=srm.companyweb.com:1090, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=srm.companyweb.com:1090
icm/HTTP/redirect_9 = PREFIX=/, FOR=srm.companyweb.com:1091, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=srm.companyweb.com:1091
icm/HTTP/redirect_10 = PREFIX=/, FOR=srm.companyweb.com:1092, TO=/sap/bc/gui/sap/its/webgui?sap, HOST=srm.companyweb.com:1092

icm/HTTP/redirect_11 = PREFIX=/, FOR=portal.companyweb.com:2222, TO=/, HOST=portal.companyweb.com:2222

 

Routing rules on next page…