【发布时间】:2018-10-09 12:35:37
【问题描述】:
我将 Eclipse 与 Tomcat 8.0 一起使用,并成功运行 Web 应用程序并将其部署到 Apache 服务器中。 现在我的问题是如何访问在线 apache 主机地址应用程序管理器,以便在此主机上部署我的应用程序 Remove Server Address
tomcat_users.xml
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="tom" password="tom123" roles="admin-gui"/>
<user username="malik" password="malik123" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
</<tomcat-users>
我将此添加到 server.xml
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" address="149.4.223.238" redirectPort="8443"/>
Context.xml
<Context antiResourceLocking="false" privileged="true" >
<!--
Remove the comment markers from around the Valve below to limit access to
the manager application to clients connecting from localhost
-->
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="149\.4\.223\.238|127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
</Context>
我正在搜索过去 5-7 小时,但仍然不明白。
【问题讨论】:
标签: java eclipse apache server host