[英]Changing Dynamic port in tomcat configuration
我正在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}”
port = 1“ $ {httpPort}”
port =“ 1 + $ {httpPort}”
发现无法动态更改server.xml中的端口,引入了新的服务器启动参数并将其传递到https端口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.