【发布时间】:2014-07-28 03:56:59
【问题描述】:
我已经在 tomcat 上成功配置了安全 https。当我启动服务器并到达
https://localhost:8443 我可以看到 tomcat 网页打开了。但是当我将 localhost 字符串更改为 ip 地址https://10.217.14.97:8443 它不会工作。
我的环境使用代理IP地址。所以当我取消选中“使用代理服务器”并选中“自动检测设置”时,从局域网设置中
https://10.217.14.97:8443 打开 apache 网页,它可以工作。
问题是我不能使用带有代理设置的 https 安全服务器。
我在 tomcat 的 server.xml 中放置了以下代码行用于代理设置。
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="C:/Users/kh812917/.keystore"
keystorePass="hamdulay"
keyPass="hamdulay" proxyName="puneproxy.igate.com" proxyPort="8080"/>
Connector 标记中的proxyName 和proxyPort 属性。 但它似乎不起作用。 请帮我解决通过代理设置在tomcat上使用https安全的问题。
【问题讨论】: