1.首先,安装tomcat服务器.
2.修改Tomcat/confi/Server.xml:
修改前:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="intel_log." suffix=".txt" timestamp="true"/>
</Host>
-----------------------------------
修改后:        //随便取,取你自己定义的域名
<Host name="www.aa.com" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="intel_log." suffix=".txt" timestamp="true"/>
</Host>                docBase="项目的路径"
<Context path="" docBase="D:\WebData\ACO" debug="0"
reloadable="true" crossContext="true">
</Context>

我還在本地電腦C:\WINNT\system32\drivers\etc\Hosts配置了該域名﹐如下﹕

127.0.0.1 localhost
*.*.*.*(表示我的IP) chenxi.foxconn.com
在URL中輸入 www.aa.com 時不能瀏覽Web頁面﹐而再加上Tomcat 端口就可以了(www.aa.com:8080).
在Tomcat 5.0\conf\server.xml中
<Connector
port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
改为
<Connector
port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
重新启动tomcat就可以了,輸入www.aa.com 就可以瀏覽Web頁面問題