推荐部署网站

 推荐部署web

    http://localhost:8080 à Tomcat Document à Referer à Configuation à Contexttomcat

    For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file.服务器

    In individual files (with a ".xml" extension) in theapp

$CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml extension) will be used as the context path. Multi-level context paths may be defined using #, e.g. foo#bar.xml for a context path of /foo/bar. The default web application may be defined by using a file called ROOT.xml.less

    若是要配置一个网站,可是该网站在其余的磁盘中,那么能够建立一个后缀为.xml的文件。文件的名字将被用做访问网站的路径即path属性值。若是须要访问的时候路径多级的那么须要将文件名以#进行基本的名字的分隔。/a/b那么文件名必须是2#b.xml。若是须要本身的网站是默认的网站那么须要将文件名定义为ROOT.xml。若是网站须要为默认网站,那么必需要重启服务器。网站

    %tomcat_home%\conf\Catalina\localhostserver

    myitcast.xml   <Context docBase="c:\jnb"/>xml

    http://localhost:8080/myitcastelement

相关文章
相关标签/搜索