网站制作引擎,网上哪个网站做的系统好用吗,设计网页的软件,移动端游戏是什么意思Tomcat管理配置 1 host-manager项目2 manager项目 Tomcat 提供了Web版的管理控制台#xff0c;位于webapps目录下。Tomcat 提供了用于管理Host的host-manager和用于管理Web应用的manager。
1 host-manager项目
Tomcat启动之后#xff0c;可以通过 http://localhost:8080/ho… Tomcat管理配置 1 host-manager项目2 manager项目 Tomcat 提供了Web版的管理控制台位于webapps目录下。Tomcat 提供了用于管理Host的host-manager和用于管理Web应用的manager。
1 host-manager项目
Tomcat启动之后可以通过 http://localhost:8080/host-manager/html 访问该Web应 用。 host-manager 默认添加了访问权限控制当打开网址时需要输入用户名和密码 conf/tomcat-users.xml中配置 。所以要想访问该页面需要在conf/tomcatusers. xml 中配置并分配对应的角色 1 admin-gui用于控制页面访问权限 allows access to the HTML GUI 2 admin-script用于控制以简单文本的形式进行访问 allows access to the text interface
配置如下
role rolenameadmin-gui/
role rolenameadmin‐script/
user usernamefeng passwordfeng rolesadmin-gui,admin‐script/By default the Host Manager is only accessible from a browser running on the same machine as Tomcat. If you wish to modify this restriction, youll need to edit the Host Managers context.xml file. /opt/module/tomcat8.5.42/webapps/host-manager/META-INF/context.xml
Context antiResourceLockingfalse privilegedtrue !-- Valve classNameorg.apache.catalina.valves.RemoteAddrValve allow127\.\d\.\d\.\d|::1|0:0:0:0:0:0:0:1 / --Valve classNameorg.apache.catalina.valves.RemoteAddrValve allow\d\.\d\.\d\.\d|::1|0:0:0:0:0:0:0:1 /Manager sessionAttributeValueClassNameFilterjava\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap/
/Contexthttp://192.168.168.104:8080/host-manager/html
2 manager项目
配置如下
role rolenameadmin-gui/
role rolenameadmin‐script/
role rolenamemanager-gui/
role rolenamemanager‐script/
user usernamechao passwordchao rolesadmin-gui,admin‐script,manager-gui,manager‐script//opt/module/tomcat8.5.42/webapps/manager/META-INF/context.xml
Context antiResourceLockingfalse privilegedtrue !-- Valve classNameorg.apache.catalina.valves.RemoteAddrValve allow127\.\d\.\d\.\d|::1|0:0:0:0:0:0:0:1 / --Valve classNameorg.apache.catalina.valves.RemoteAddrValve allow\d\.\d\.\d\.\d|::1|0:0:0:0:0:0:0:1 /Manager sessionAttributeValueClassNameFilterjava\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap/
/Contexthttp://192.168.168.104:8080/manager Server Status