https转换为http [英] https getting converted to http

查看:600
本文介绍了https转换为http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft IIS来代理WebLogic服务器的请求。

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

我在IIS上启用了https。

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]

我在WebLogic Server上启用了https。

I've enabled https on WebLogic Server.

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

通信黑白IIS和WebLogic Server在https上。

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

问题是当我访问应用程序时https使用webserver URL (https://webserver/myapp/test.jsp)我得到响应(test.jsp的内容),但是当我打印request.getRequestURL()在过滤器中,我得到http URL (http://webserver/myapp/test.jsp)。这在执行sendRedirect()时会导致问题...

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()...

为什么我的https网址会转换为http?有什么想法?

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

谢谢。

推荐答案

以下解决了我的问题:

Following solved my issue:

如果插件正在与WebLogic应用程序服务器通信,请执行以下操作 -
环境>服务器>选择您的服务器>常规>高级>检查WebLogic插件已启用

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

再次感谢。

这篇关于https转换为http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆