https getting converted to http

杀马特。学长 韩版系。学妹 提交于 2020-01-06 14:09:44

问题


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.



来源:https://stackoverflow.com/questions/18986399/https-getting-converted-to-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!