如何配置TOMCAT域名 收藏
打开tomhome/conf/下的server.xml
添加以下内容:
<Host appBase="C:/aaaa" autoDeploy="true" debug="0" deployXML="true" liveDeploy="true" name="doc.guandang.net; unpackWARs="true">
<Context cachingAllowed="true" cookies="true" crossContext="true" debug="0" docBase="C:/aaa/bbb" path="" privileged="false" reloadable="true" swallowOutput="false" useNaming="true" >
</Context>
</Host>
仅仅这样还是不够的,配置后,现在输入doc.guandang.net以及你的IP:8080是没有问题,可是要想从外网访问就必需配置你的hosts文件了。
windows服务器在:C:\WINNT\system32\drivers\etc\下,直接用记事本打开就可以了 例:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
*.*.*.* www.***.com
linux服务器在/etc/下,命令行下:vi hosts
例: # Do not remove the following line, or various programs
如何配置 TOMCAT 域名 收藏 打开 tomhome/conf/下的 server.xml 添加以下内容: <Host appBase="C:/aaaa" autoDeploy="true" debug="0" deployXML="true" ...
TOMCAT的域名配置2010-10-19 17:28现在很多的公司的网站都是用tomcat作为应用服务区的,可是对于初学者,8080端口号是如何去掉的,这些网站是如何和域名绑定到一起...
\WORKS\YCOE\Tomcat\work\ycoe"></Context> 1.</Host> 这里是设置我们的第二个虚拟网站的域名. --- 但不能用http://ycoe.vicp.net或http://yvor.vicp....
tomcat多域名配置_计算机硬件及网络_IT/计算机_专业资料。tomcat多域名配置tomcat 多域名配置在服务器部署过程中,我们一个 tomat 可能需要配置多个域名,主要配置 con...
tomcat域名配置_IT/计算机_专业资料。如何配置tomcat下的多域名和多个虚拟目录的访问教程Tomct 多域名绑定和虚拟目录 Tomcat 采用默认安装,要想 tomcat 直接绑定多个...
配置TOMCAT域名 隐藏>> 分享到: X 分享到: 使用一键分享,轻松赚取财富值, 了解详情 嵌入播放器: 普通尺寸(450*500pix) 较大尺寸(630*500pix) 预览复制 ...
docBase="d:/wwwroot/chengqun"></Context> </Host> 其中,Host 标记是用来配置虚拟主机的,就是可以多个域名指向一个 tomcat,格式只要参 考默认的就可以了。...
chengqun" docBase="d:\wwwroot\chengqun"></Context> </Host> 其中,Host标记是用来配置虚拟主机的,就是可以多个域名指向一个tomcat,格式只要参考默认的就 ...
Tomcat绑定二级域名的配置方法_IT/计算机_专业资料。Tomcat绑定二级域名的配置方法Tomcat 绑定二级域名的配置方法最近因为要测试一个系统 ,使用到 Tomcat .因为我们已...
docBase="d:\wwwroot\chengqun"></Context> </Host> 其中,Host 标记是用来配置虚拟主机的,就是可以多个域名指向一个 tomcat,格式只要参考默认的就 可以了。...
热门文档