tomcat配置多域名
来源:互联网 发布:谷歌关键词优化 编辑:程序博客网 时间:2024/04/30 09:25
在tomcat里面安装路径的/opt/tomcat/conf/
路径下面的server.xml 添加一下内容
1,
<Host name="域名1" appBase="webapps3">
<Logger className="org.apache.catalina.logger.FileLogger" directory="wgame6_logs"prefix="mybus_log." suffix=".txt" timestamp="true"/>
<Context path="/wgame" docBase="绝对路径1" debug="0" reloadable="true">
</Context>
</Host>
<Host name="域名2" appBase="webapps4">
<Logger className="org.apache.catalina.logger.FileLogger" directory="wgame6_logs"
prefix="mybus_log." suffix=".txt" timestamp="true"/>
<Context path="/wgame" docBase="绝对路径2" debug="0" reloadable="true">
</Context>
</Host>
<Host name="域名3" appBase="webapps5">
<Logger className="org.apache.catalina.logger.FileLogger" directory="wgame6_logs"
prefix="mybus_log." suffix=".txt" timestamp="true"/>
<Context path="/wgame" docBase="绝对路径3" debug="0" reloadable="true">
</Context>
</Host>
<Host name="域名4" appBase="webapps99">
<Logger className="org.apache.catalina.logger.FileLogger" directory="wgame6_logs"
prefix="mybus_log." suffix=".txt" timestamp="true"/>
<Context path="/wgame" docBase="绝对路径4" debug="0" reloadable="true">
</Context>
</Host>
其中name="域名"这部分是可以配置为自己的需要的域名。并且不各不相同
docBase=“绝对路径” 这个是绝对路径 可以改为域名指定的访问路径。
2,如果是只配置一个地址的话需要在
/opt/tomcat.wgame/conf/Catalina/localhost/
目录下面添加 相应的配置文件
名称为
1.xml 类型的配置文件
<Context path="/wgame" docBase="资源路径" debug="0"
reloadable="true">
</Context>
- tomcat多域名配置
- tomcat多域名配置
- tomcat多域名配置
- tomcat多域名配置
- tomcat配置多域名
- tomcat多域名配置
- tomcat配置多域名
- tomcat多域名配置
- Tomcat 多域名配置
- tomcat多域名配置
- tomcat配置多域名
- tomcat多域名配置
- Tomcat 多域名配置
- tomcat多域名配置
- tomcat多域名配置
- tomcat配置多域名
- Tomcat多域名配置
- tomcat多域名配置
- spring学习笔记15--Spring2.x+Hibernate3.x +Struts1.x整合开发(3)struts再次尾随sh
- 树形DP
- Linux 信号signal处理机制
- 常见数组面试题
- Eclipse Debug
- tomcat配置多域名
- Virtual Ubuntu Resolution Settings
- MapReduce 模式、算法和用例
- myeclipse 启动服务时 提示“Address already in use:JVM_Bind:8080”
- 设备驱动学习之字符设备驱动内核代码分析(二)——字符设备结构体cdev
- 返回顶部
- Struts 2 + Spring + Hibernate integration Tutorial
- 将文件上传、下载(以二进制流保存到数据库)
- MapReduce算法设计--Think in Hadoop