on 04-15-2021 12:36 PM
Dear all,
I have two server :
1 non sap server hosted srv.exemple.fr with port 443
2 sap system hosted ex.myapp.exemple.fr on port 44300
I have setup the web dispatcher with the below configuration:
icm/server_port_0 = PROT=ROUTER,PORT=443, EXTBIND=1
icm/server_port_1 = PROT=HTTP,PORT=80, EXTBIND=1
icm/server_port_2 = PROT=HTTPS,PORT=8443
exe/icmbnd = /usr/sap/WDP/W00/exe/icmbnd
icm/HTTP/logging_00 = PREFIX=/, LOGFILE=access_log-%d-%m-%y_%h:%t:%s,LOGFORMAT=%t %h %u - "%r2" %s %b %L %a %r1
#-----------------------------------------------------------------------
# SAP Web Dispatcher Administration
#-----------------------------------------------------------------------
icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=$(DIR_DATA)$(DIR_SEP)icmandir,AUTHFILE=$(icm/authfile)
#-----------------------------------------------------------------------
# Start webdispatcher
#-----------------------------------------------------------------------
_WD = $(rdisp/workdir)/wd.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)
Execute_02 = local rm -f $(_WD)
Execute_03 = local ln -s -f $(DIR_EXECUTABLE)/sapwebdisp$(FT_EXE) $(_WD)
Restart_Program_00 = local $(_WD) pf=$(_PF)
SETENV_05 = SECUDIR=$(DIR_INSTANCE)/sec
wdisp/system_0 = SID=EXT, EXTSRV=https://srv1.exemple.fr, SRCSRV=srv1.exemple.fr:443, SRCURL=/
wdisp/system_1 = SID=DEV, MSHOST=dev,MSPORT=8100, SRCSRV=ex.myapp.exemple.fr:443;mb.myapp.exemple.fr:443, SRCURL=/
icm/HTTP/mod_0 = PREFIX=/, FILE=/sapmnt/WDP/profile/mod_rules.txt
the mod_rules.txt files contains the below configuration:
if %{HTTP_HOST} regimatch "ext.myapp.exemple.fr"
SetHeader x-sap-webdisp-target-sid DEV [break]
if %{HTTP_HOST} regimatch "srv1.exemple.fr"
SetHeader x-sap-webdisp-target-sid EXT [break]
if %{HTTP_HOST} regimatch "ex.myapp.exemple.fr"
SetHeader x-sap-webdisp-target-sid DEV [break]
The main problems is when I want to go to srv1.exemple.fr it's ok
when I want to go ex.myapp.exemple.fr I'm redirected to the web server hosting srv1.exemple.fr
So all my URL are redirect to the same server and not distributed.
My sap web dispatcher is 7.45
Any idea why ? I see nothing wrong in my log file
Thanks and regards
Hi Christiano,
Thanks for your answer.
I set the trace level to 2 and see the below information when executing the mod_rules files
IF "%{HTTP_HOST}"->"sapwdp.exemple.fr",
"sapwdp.exemple.fr" is the dns of my sap web dispatcher
any idea why the HTTP_POST is changed by it ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.