Tomcat目录映射设置
来源:互联网 发布:小马搜索软件下载 编辑:程序博客网 时间:2024/05/16 08:23
方法一:
\conf\server.xml
<Host>内插入<Context path="虚拟目录" docBase="文件目录" />
<Context path="虚拟目录" docBase="文件目录" />
注:需重启Tomcat
方法二:
\conf\Catalina\localhost
新建文件 虚拟目录.xml 文件内写入
<Context path="" docBase="文件目录" />
注:
多级目录写法 虚拟一级目录#虚拟二级目录#虚拟三级目录.xml
根目录起始页设置
\conf\Catalina\localhost
1.新建文件 ROOT.xml 文件内写入
<Context path="" docBase="文件目录" />
2.文件目录下新建必须文件夹 "WEB-INF","WEB-INF"下新建文件夹"classes"和"lib"
3.新建文件 web.xml 文件内写入
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<welcome-file-list>
<welcome-file>起始页1.html</welcome-file>
<welcome-file>起始页2.html</welcome-file>
<welcome-file>起始页3.html</welcome-file>
</welcome-file-list>
</web-app>
本地域名映射
1.C:\Windows\System32\drivers\etc\hosts
127.0.0.1 域名
2.\conf\server.xml
<Engine></Engine>内插入
<Host name="域名" appBase="域名基准文件路径">
<Context path="虚拟目录" docBase="文件路径(相对基准文件路径)"/>
</Host>
*端口
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
- Tomcat目录映射设置
- tomcat目录映射
- [转]Tomcat目录映射
- tomcat配置目录映射
- tomcat设置关于目录
- Tomcat目录权限设置
- tomcat 目录结构 环境变量配置 设置为windows服务 映射虚拟站点
- 关于tomcat的web目录映射问题
- tomcat虚拟目录映射网络共享目录
- tomcat中设置root目录
- 如何设置Tomcat目录浏览
- eclipse 设置 tomcat 发布目录
- eclipse设置tomcat部署目录
- Apache Tomcat 服务器目录映射到本地磁盘目录
- 02tomcat--- web应用和虚似目录的映射.
- 在tomcat中添加 虚拟目录 与 本地目录的 映射
- tomcat映射路径(应用程序基本目录)的配置方法
- tomcat ip地址访问项目 映射共享目录
- Android之ContentProvider总结
- gridcolumn获取列头标题!
- 计算机专业经典书籍(汇总)
- Android UI中的style和theme以及AlertDialog
- java发送post请求并接收返回
- Tomcat目录映射设置
- 人间词话 王国维
- java高并发-静态页面生成方案(2)
- window.open()打开的窗口第2次进入时不执行page_load
- error: 'struct passwd' has no member named 'pw_comment'
- C/C++面试感受和经验以及面试题收藏
- android Bitmap用法总结
- nginx编译安装
- 第49条:基本类型优先于装箱基本类型