https getting converted to http

2019-09-01 10:35发布

问题:

I am using Microsoft IIS to proxy requests for WebLogic server.

I've enabled https on IIS.

 [http://webserver gives error that 'page must be viewed on https' and https://webserver gives content of Default.htm file]

I've enabled https on WebLogic Server.

[http://weblogic:7001/myapp/test.jsp and https://weblogic:7002/myapp/test.jsp both works]

Communication b/w IIS and WebLogic Server is on https.

The issue is when I access application on https using webserver URL (https://webserver/myapp/test.jsp) I do get response (content of test.jsp) but when I print request.getRequestURL() in a filter, I get http URL (http://webserver/myapp/test.jsp). This is causing a issue while doing sendRedirect()...

Why are my https URLs getting converted to http? Any idea?

Thanks.

回答1:

Following solved my issue:

If a plug-in is communicating to WebLogic application server then do following – Environments > Servers > select your server > General > Advanced > check WebLogic Plug-In Enabled

Thanks again.