如何给tomcat服务器配置域名

来源:互联网 发布:股票跟庄软件 编辑:程序博客网 时间:2024/05/16 14:22
1.修改Tomcat安装目录下的即\Tomcat 5.5\conf下的文件server.xml,
用记事本打开,
(1)找到:
<Connector
        port="8080"
修改为:
<Connector
        port="80"
(2)找到<Host>标签,改成 
<Host name="mobisys.xidian.edu.cn" appBase="webapps" 
unpackWARs="true" autoDeploy="true" 
xmlValidation="false" xmlNamespaceAware="false"> 
<Context path="" docBase="E:\tomcat-5.0.24\webapps\firstloong\web" 
debug="0"/> 
</Host> 
2.修改系统hosts文件
添加:127.0.0.1 mobisys.xidian.edu.cn
原创粉丝点击