cancel
Showing results for 
Search instead for 
Did you mean: 

how to auto redirect HTTP to HTTPS for NW Portal 7.01

Former Member
0 Kudos

Without using a reverse proxy or web dispatcher, is there a config setting in NW EP 7.01 that would force all requests to http://<host>; to https://<host>?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David,

Please check the SAP note 973644 : How to configure HTTPS redirect on J2EE Engine

Solution:

Open Config Tool and go to Configurations -> cluster_data -> server -> eristent -> servlet_jsp. Open the file global-web.xml and put the following security-constraint tag just before closing tag </web-app>:

<security-constraint>

<display-name>HTTPS-redirect</display-name>

<web-resource-collection>

<web-resource-name>allResources</web-resource-name>

<url-pattern>*</url-pattern>

</web-resource-collection>

<user-data-constraint>

<transport-guarantee>CONFIDENTIAL</transport-guarantee>

</user-data-constraint>

</security-constraint>

In order to take an effect restart J2EE Engine.

Regards,

Ganesh

Answers (1)

Answers (1)

Former Member
0 Kudos

That solution almost got us where we needed to be. Since we are using web dispatcher, we send all requests to http://<host>. The web dispatcher then translates that to http://<host>:50000.

When I put those parameters into the XML file and restarted, my requests to http://<host>; got redirected to https://<host>:50001.

They need to be redirected to just https://<host>;

Is there a web dispatcher parameter that would do this(force HTTP requests over to HTTPS)?

Former Member
0 Kudos

Hi,

I use the web dispatcher for this need.

I have a DNS alias (short and long) for the server which hosts the web dispatcher and the SAP EP portal.

When the user types the simple URL http://portalsap

there are web dispatcher redirect rules which redirect the user browser to the technical URL

https://portalsap.companydomain.country/irj/portal

My web dispatcher listens on the 2 standard ports : 80 for HTTP and 443 for https.

The portal port (50000) is never seen by the users.

As the web dispatcher ends the SSL connexion, the portal is always accessed with http but this is not a security risk beacause the web dispatcehr and Portal are o nthe same physical host.

I have also only one signes X509 certificate to manage on the web dispatcher.

Hope this helps.

Olivier

anesh_kumar
Active Participant
0 Kudos

Hi

We are using web service in Portal 7.01, the actual web service is working fine with in the network

for external usage we are calling the web service through CSS to make it Https

like https://company.com/. ( this call is routed through CSS )

but i am getting an error as cannot download WSDL

is there a way i can redirect the URL internally using dispatcher to the original service

Could you please help me on this

Thank you so very much for your help in advance

Regards

Former Member
0 Kudos

Hi,

Why do you hijack the question of the OP ?

You should open a new thread and, by the way, clarify the question which I did not understand at all...

Regards,

Olivier