Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ICM redirect HTTPS but no port change

murphybs
Explorer
0 Likes
2,126

Hello,

i want to redirect all http trafic to https so i setup

This are my ICM parameters.

icm/server_port_0 PROT=HTTP,PORT=80$$,PROCTIMEOUT=600,TIMEOUT=600
icm/server_port_1 PROT=HTTPS,PORT=443$$,PROCTIMEOUT=600,TIMEOUT=600
icm/HTTP/redirect_0 PREFIX=/, FROM=*, FROMPROT=http, PROT=https, HOST=xys.corp

if in now try to call for example http://xys.corp:8000/sap/public/info i get a redirect to https://xys.corp:8000.

The system doesent change the port.

Why?

1 ACCEPTED SOLUTION
Read only

LutzR
Active Contributor
1,551

Hi Bernhard,

well because you forgot the PORT=443$$ in the redirect target definition, I guess.

https://help.sap.com/viewer/683d6a1797a34730a6e005d1e8de6f22/7.31.23/en-US/483d993fb08c72d1e10000000...

icm/HTTP/redirect_0 PREFIX=/, FROM=*, FROMPROT=http, PROT=https, HOST=xys.corp, PORT=443$$

?

Cheers, Lutz

Edit: I think the ICM is not as intelligent as you expect. Parameters simply don't know of each other most of the time.

3 REPLIES 3
Read only

LutzR
Active Contributor
1,552

Hi Bernhard,

well because you forgot the PORT=443$$ in the redirect target definition, I guess.

https://help.sap.com/viewer/683d6a1797a34730a6e005d1e8de6f22/7.31.23/en-US/483d993fb08c72d1e10000000...

icm/HTTP/redirect_0 PREFIX=/, FROM=*, FROMPROT=http, PROT=https, HOST=xys.corp, PORT=443$$

?

Cheers, Lutz

Edit: I think the ICM is not as intelligent as you expect. Parameters simply don't know of each other most of the time.

Read only

murphybs
Explorer
0 Likes
1,551

Hello Lutz,

thanks for the hint. Now the redirect works.

But only if i use IE or Chrome as browser. Firefox will still be on the http port.

Any idea?

Kind regards,

Bernhard

Read only

LutzR
Active Contributor
1,551

Hmm. I saw that browsers cached redirects once in a while. So Firefox might work as soon as you clean the browser cache.