﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-成家荣的JavaBlog-文章分类-Tomcat</title><link>http://www.blogjava.net/yunye/category/31876.html</link><description>  ... 宁静的晚上，在心爱的电脑前搭建自己的程序....
          </description><language>zh-cn</language><lastBuildDate>Sun, 01 Jun 2008 01:29:59 GMT</lastBuildDate><pubDate>Sun, 01 Jun 2008 01:29:59 GMT</pubDate><ttl>60</ttl><item><title>TOMCAT类似iis主机头配置方法 (转)</title><link>http://www.blogjava.net/yunye/articles/205115.html</link><dc:creator>成家荣</dc:creator><author>成家荣</author><pubDate>Sat, 31 May 2008 17:55:00 GMT</pubDate><guid>http://www.blogjava.net/yunye/articles/205115.html</guid><wfw:comment>http://www.blogjava.net/yunye/comments/205115.html</wfw:comment><comments>http://www.blogjava.net/yunye/articles/205115.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yunye/comments/commentRss/205115.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yunye/services/trackbacks/205115.html</trackback:ping><description><![CDATA[
		<p>测试过程：<br />   系统：windowsxp<br />    C:\WINDOWS\system32\drivers\etc\hosts文件 添加<br />   127.0.0.1       <a href="http://www.hi.com">www.hi.com</a><br />   127.0.0.1       <a href="http://www.hello.com">www.hello.com</a><br />这样可以测试<a href="http://www.hi.com">www.hi.com</a>，<a href="http://www.hello.com">www.hello.com</a>两个域名指向本地服务器。</p>
		<p>
				<br />1.若要使tomcat使用80端口，确保80端口可用<br />2.修改tomcat的 conf/server.xml<br /> &lt;Connector port="8080" ==&gt; &lt;Connector port="80"<br />3. &lt;Engine name="Catalina" defaultHost="localhost"&gt;<br /> 添加&lt;Host name="<a href="http://www.hi.com">www.hi.com</a>" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"&gt; <br />&lt;Context path="" docBase="D:/tomcat-6.0.16/1webapps/jforum" debug="0" reloadable="true"/&gt; <br />&lt;/Host&gt; </p>
		<p>&lt;Host name="<a href="http://www.hello.com">www.hello.com</a>" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"&gt; <br />&lt;Context path="" docBase="E:/eclipse/ws/pm/WebContent" debug="0" reloadable="true"/&gt; <br />&lt;/Host&gt; </p>
		<p>
				<br />其中D:/tomcat-6.0.16/1webapps/jforum，E:/eclipse/ws/pm/WebContent是2个web应用程序</p>
		<p>这样 D:/tomcat-6.0.16/1webapps/jforum对应的web应用使用<a href="http://www.hi.com">http://www.hi.com</a>访问<br />这样 E:/eclipse/ws/pm/WebContent对应的web应用使用<a href="http://www.hello.com">http://www.hello.com</a>访问</p>
		<p>测试通过</p>
		<p> </p>
		<p>===============================================================================================<br /><a href="http://dg.lawyer.com">http://dg.lawyer.com</a>的配置</p>
<img src ="http://www.blogjava.net/yunye/aggbug/205115.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yunye/" target="_blank">成家荣</a> 2008-06-01 01:55 <a href="http://www.blogjava.net/yunye/articles/205115.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>