cancel
Showing results for 
Search instead for 
Did you mean: 

Forward HTTP to HTTPS

Former Member
0 Kudos

hello

i have not found some working solution for http to https forwarding yet

i want to forward all access to http://server:50100/irj/portal to url http://server/ (port 80)

i thought that proxy mappings is exactly what i need, but ...

proxymappings property is configured as follows:

50100=(Host:server,Port:80,Scheme:http,Override:true)

it works in case, that only the basic URL is accessed:

http://server:50100/

than it redirects as defined

in case, that for example this kind of URL is accessed:

http://server:50100/irj/portal

the redirection doesn't work and portal login page is displayed

anybody has please a clue how to avoid this?

(i'm desperate, OSS support won't help me, because "it's not product error" they say)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Michal,

The ProxyMappings setting will redirect the user once they have logged on, but I guess you want to send them via a reverse proxy with a single sign-on plugin...

To achieve what you want to do, you will have to edit the portal logon HTML page and add some JavaScript code.

This code would be something like:

<script>
if (location.host.indexOf(":50100") > -1) 
{
    var newUrl = location.href;
    newUrl.replace(":50100","");
    location.replace(newUrl);
}

</script>

This will detect if the page has been accessed via port 50100, and if so will redirect to the same URL without port 50100.

Hope this helps,

Darren

Former Member
0 Kudos

thanks for effort darren

it doesn't work as expected

i would like to forward

http://server:50100/irj/portal

to

http://server/

this will forward me when i'll try to reach

http://server:50100/irj

and it's forwarding to

http://server/irj

that of course doesn't exist

any idea how to get it work, darren?

former_member185954
Active Contributor
0 Kudos

Hi,

have you tried adjusting the replace string according to your needs:

what i meant was instead ":50100" use something like ":50100/irj/portal"

Regards,

Siddhesh

Answers (3)

Answers (3)

Former Member
0 Kudos

Michal,

Use Web Dispatcher with icm/HTTP/redirect_<xx> parameter.

It is designed to do exaclty that.

http://help.sap.com/saphelp_nw04s/helpdata/en/00/040f3a39ce8704e10000000a114084/frameset.htm

Regards,

Slava

Former Member
0 Kudos

Hi Michal,

Have you got the solution to access /irj/portal through https when request is sent using http. If so you could you please share the details with me.

I am able to configure http://hostname:port/useradmin using portmapping parameter but I am unable to configure http://hostname:port/irj/portal.

Regards

Shiv

former_member265210
Active Participant
0 Kudos

how to disable http port over https?

1. login to Visyal admin

2. Dispatcher > services > HTTP provider >

3. edit

proxymappings: 50000=(Host:hostname,Port:50001,Scheme:https,Override:true)

4. restart the "HTTP provider" or j2ee engine

Result: all http incomming request will be converted to https req.you can access portal only using https)