web应用和虚拟目录的映射
来源:互联网 发布:来个淘宝买水果靠谱的 编辑:程序博客网 时间:2024/06/06 23:51
web应用和虚拟目录的映射
在D:\apache-tomcat-6.0.14\conf的server.xml文件中配置
在<Host></Host>之间加上
<Context path="/xunimulu" doBase="c:\news"/>
其中xunimulu可以随便取名字,为虚拟目录,doBase是真实的目录
在浏览器中输入
http://localhost:8080/xunimulu/1.html
(真实项目中一般不用上面那种方法,因为每次修改都要重启)
另一种方法,这里面有介绍:
file:///D:/apache-tomcat-6.0.14/webapps/docs/config/context.html
Context elements may be explicitly defined:
in the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps
in the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host
in individual files (with a ".xml" extension) in the $CATALINA_HOME/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. context#path.xml. The default web application may be defined by using a file called ROOT.xml.
if the previous file was not found for this application, in an individual file at /META-INF/context.xml inside the application files
inside a Host element in the main conf/server.xml
直接把文件放在D:\apache-tomcat-6.0.14\webapps中
在D:\apache-tomcat-6.0.14\conf的server.xml文件中配置
在<Host></Host>之间加上
<Context path="/xunimulu" doBase="c:\news"/>
其中xunimulu可以随便取名字,为虚拟目录,doBase是真实的目录
在浏览器中输入
http://localhost:8080/xunimulu/1.html
(真实项目中一般不用上面那种方法,因为每次修改都要重启)
另一种方法,这里面有介绍:
file:///D:/apache-tomcat-6.0.14/webapps/docs/config/context.html
Context elements may be explicitly defined:
in the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps
in the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host
in individual files (with a ".xml" extension) in the $CATALINA_HOME/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. context#path.xml. The default web application may be defined by using a file called ROOT.xml.
if the previous file was not found for this application, in an individual file at /META-INF/context.xml inside the application files
inside a Host element in the main conf/server.xml
直接把文件放在D:\apache-tomcat-6.0.14\webapps中
0 0
- web应用和虚拟目录的映射
- web应用的虚拟目录映射
- web应用的虚拟目录映射和主机搭建(Tomcat)
- web应用的虚拟目录映射和主机搭建(Tomcat)
- web应用与虚拟目录的映射
- 虚拟目录的映射和Web.xml文件
- javaWeb_web应用和虚拟目录的映射
- JavaWeb学习篇之----web应用的虚拟目录映射和主机搭建(Tomcat)
- [置顶] JavaWeb学习篇之----web应用的虚拟目录映射和主机搭建(Tomcat)
- (Tomcat)服务器之web应用的虚拟目录映射和主机搭建
- 学习笔记,web应用虚拟目录的映射(Tomcat)
- 日常小结-tomcat结构目录、web应用及虚拟目录的映射
- JavaWeb-WEB应用-虚拟目录三种映射-虚拟主机
- JavaWeb-WEB应用-虚拟目录三种映射-虚拟主机
- JavaWeb-WEB应用-虚拟目录三种映射-虚拟主机-web.xml-web应用组成结构
- 虚拟目录的映射方式
- 虚拟目录的映射方式
- tomcat虚拟目录的映射
- CString中Format函数与格式
- AJAX笔试面试题汇总
- Codeforces Round #240 (Div. 2)
- oracle表查询
- #pragma once与 #ifndef的区别
- web应用和虚拟目录的映射
- 黑马程序员-我的第十八篇学习日记:Foundation中的NSArray和NAMutableArray
- _com_util::ConvertBSTRToString' : cannot convert parameter 1 from 'String' to to 'BSTR'
- poj_1753 递归+枚举
- Cryptographic signing 记忆线索
- hdu 1013 Digital Roots
- 最大流-hdoj-1532
- AJAX笔试面试题汇总
- github版本库使用详细教程(命令行及图形界面版)