【问题标题】:Changing Dynamic port in tomcat configuration在 tomcat 配置中更改动态端口
【发布时间】:2014-08-26 19:58:21
【问题描述】:

我正在 tomcat 7.0 中的 server.xml 中进行以下更改

<Connector port="${httpPort}" protocol="org.apache.coyote.http11.Http11Protocol"
           maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" />

我需要在 httpPort 之前附加 1,例如 1${httpPort},这样对于 8080,https 端口将是 18080,我尝试了以下方法,它不起作用,请帮助。谢谢!

port="1${httpPort}"
端口=1"${httpPort}"
端口="1+${httpPort}"

【问题讨论】:

    标签: tomcat server.xml


    【解决方案1】:

    发现在 server.xml 中动态更改端口是不可能的,引入了一个新的服务器启动参数并在 https 端口中传递了该参数。

    【讨论】:

      猜你喜欢
      • 2018-12-18
      • 1970-01-01
      • 2021-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-05
      相关资源
      最近更新 更多