zoukankan      html  css  js  c++  java
  • tomcat用虚拟目录方式发布项目与manager页面配置

    conf/Catalina/localhost:指定项目的配置信息
    1.添加:ROOT.xml
    听见Context节点:
    <Context docBase="/usr/local/tomcat7/COMMON-ROOT" ></Context>
    访问路径:
    http://localhost:8080 访问的就是projects/COMMON-ROOT 下面的
    还可以添加多个,  如:mobile.xml
    访问路径:http://localhost:8080/mobile

    tomcat7访问管理页面
    需要修改 conf目录下tomcat-users.xml配置

    <tomcat-users>
    <!--
    NOTE: By default, no user is included in the "manager-gui" role required
    to operate the "/manager/html" web application. If you wish to use this app,
    you must define such a user - the username and password are arbitrary.
    -->
    <!--
    NOTE: The sample user and role entries below are wrapped in a comment
    and thus are ignored when reading this file. Do not forget to remove
    <!.. ..> that surrounds them.
    -->
    <role rolename="tomcat"/>
    <role rolename="role1"/>
    <role rolename="manager"/>
    <user username="admin" password="" roles="manager-gui"/>
    </tomcat-users>
    这里的配置跟tomcat6略有不同

    注意:需要将admin用户的roles改为"manager-gui"

     
  • 相关阅读:
    [bzoj1076]奖励关
    [bzoj1085]骑士精神
    [bzoj1082]栅栏
    [bzoj1084]最大子矩阵
    [bzoj1072]排列
    [bzoj1071]组队
    [bzoj1068]压缩
    [bzoj1061]志愿者招募
    [bzoj1059]矩阵游戏
    [bzoj1052]覆盖问题
  • 原文地址:https://www.cnblogs.com/weiguo21/p/3421480.html
Copyright © 2011-2022 走看看