Search This Blog

Thursday, May 15

SAP EP http to https redirect

Issue:
we have webdispatcher installed on host cpcwd1. The external url
https://abc.xyz.com is mapped to the internal webdispatcher
url cpcwd1.cpc.co.in through reverse proxy. Webdispatcher is connected
the AS Java system. Currently SSL certificate is imported in
webdispatcher and https port is only open.

Please let us know how we can convert the url automatically at the
webdispatcher level from https://abc.xyz.com to
https://abc.xyz.com.

The webdispatcher profile is attached with the message.
We have also tried the parameter -
icm/HTTP/redirect_0 = PREFIX=/, FROM=*, FROMPROT=http, PROT=https,
HOST=px155.sap.com
which is not working


Solution :
The paramater
icm/HTTP/redirect_0 = PREFIX=/, FROM=*, FROMPROT=http, PROT=https,
HOST=px155.sap.com
should work actually.
What i suspect is there is already paramater icm/HTTP/redirect_0 and
you are using same paramater again which will violate the earlier one.
(icm/HTTP/redirect_0 = PREFIX=/, TO=/irj/portal )
Hence could you please change it to icm/HTTP/redirect_1= PREFIX=/,
FROM=*, FROMPROT=http, PROT=https,
HOST=px155.sap.com.

Problem:
We have tried setting the below mentioned parameter in Webdispatcher
but still it is failing.

We have EP installed with 5 application with SCS and DB. Below is the
FQDN for all the component -

APP server 1 - tiEPP.tpc.co.in
APP Server 2 - cpceppapp01.cpc.co.in
APP Server 3 - cpceppapp02.cpc.co.in
APP Server 4 - cpceppapp03.cpc.co.in
APP Server 5 - cpceppapp04.cpc.co.in
SCS - tcs02EPP.cpc.co.in
DB - dbkEPP.cpc.co.in

On top of this webdispatcher is installed and the FQDN for
webdispatcher is -

Webdispatcher - cpcwd1.cpc.co.in

Through maintaining DNS entry the webdispathecr url
(https://cpcwd1.cpc.co.in) is getting converted to
https://abc.xyz.com. Also a third pary reverse proxy is
used for url diversion in internet the same also converting from
https://cpcwd1.cpc.co.in to https://abc.xyz.com in internet.
I have added the following two parameter separately and tested (added
1st parameter - did not work, then modified to 2nd parameter still did
not work) -
icm/HTTP/redirect_1= PREFIX=/, FROM=*, FROMPROT=http, PROT=https,
HOST=tpcwd1.tpc.co.in
and
icm/HTTP/redirect_1= PREFIX=/, FROM=*, FROMPROT=http, PROT=https,
HOST=sangamdev.tatapower.com

Please let us know how we can set the parameter in our scenario so that
while end user type - http://abc.xyz.com it gets
automatically converted to https://abc.xyz.com.

Solution:
please check the syntax with required spaces in the parameter
definition that you have maintained according to the following link
http://help.sap.com/saphelp_nw04s/helpdata/en/00/040f3a39ce8704e10000000a114084/content.htm
Problem :
Also I have tried all the possible combination (providing space) of
providing the parameter as discussed over phone. But still it is not
working.

Solution:
you need to open the port 8103 defined for http
port.
The incoming http request is not reaching webdispatcher so that it can
be redirected.
If you want to change the http port then you need to change ICM
paramaters in webdispatcher profile mainly this paramater
icm/server_port_0 =
PROT=HTTP,HOST=TPCWD1,PORT=8103,TIMEOUT=60,PROCTIMEOUT=600
and below this paramater you can see other parameters as well where
http port is used,you need to change that as well.
You can involve network team and check with them regarding the present
port.