https tomcat在https:// localhost:8443上打开但不使用ip https://10.217.14.97:8443

时间:2014-07-28 03:57:00

标签: apache tomcat ssl

我已经在tomcat上成功配置了安全https。当我启动服务器并开始使用时 https://localhost:8443我可以看到tomcat网页打开。但是当我将localhost字符串更改为ip地址https://10.217.14.97:8443时,它无法正常工作。 我的环境使用代理IP地址。当我取消选中“使用代理服务器”并选中“自动检测设置”标记时,从Lan设置 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 secure的问题。

1 个答案:

答案 0 :(得分:0)

错误,localhost127.0.0.1。它无法通过10.217.14.97访问。如果您希望它在10.217.14.97,收听,请指定而不是localhost.

相关问题