博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
推荐部署网站
阅读量:7032 次
发布时间:2019-06-28

本文共 829 字,大约阅读时间需要 2 分钟。

 推荐部署

    à Tomcat Document à Referer à Configuation à Context

    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 the

$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.

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

    %tomcat_home%\conf\Catalina\localhost

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

    http://localhost:8080/myitcast

转载地址:http://vwyal.baihongyu.com/

你可能感兴趣的文章
Node.js的安装,以及测试环境
查看>>
ZSH--agnoster主题安装
查看>>
日常shell命令收集
查看>>
自定义异常
查看>>
我的友情链接
查看>>
Python中的random模块
查看>>
用的较为舒服的时间插件jQuery DateTimePicker
查看>>
Windows8浅谈之Metro与经典Windows界面
查看>>
OpenLDAP的安装与基本配置(一)
查看>>
Dell(戴尔)电脑恢复BIOS出厂设置的方法
查看>>
VMware Horizon View Config Tool 用户使用手册之一 -- VCT介绍和安装之前的准备
查看>>
桥接和路由模式区别
查看>>
黑马程序员-Java基础加强之反射
查看>>
汇编学习——使用Linux系统调用
查看>>
PagerTabStrip简单使用方式2
查看>>
SHELL脚本基础讲解
查看>>
PHP 数据库命令行的使用
查看>>
有赞公告设置
查看>>
win7系统开机遇到reboot and select proper boot device错误解决方法
查看>>
我的收藏
查看>>