标签归档:web

tomcat 设置默认webapps、端口、首页

修改tomcat/conf目录的server.xml文件
在Engine段落里加入,即可将shev工程设置为默认webapps

<Context docBase="shev" path="" reloadable="true" />

修改server.xml文件
修改默认端口号

    <Connector connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>

修改web.xml文件,找到如下段落,加入自己需要的默认首页页面文件

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>