1.在TOMCAT里面配置
<Host name="www.ahgcc.cn" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="D:\server\hdsf\hdsfweb" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_ahgsl_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/hdsf" auth="Container"
type="javax.sql.DataSource" driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://localhost:1433;DatabaseName=ahgsl;SelectMethod=cursor"
username="ahgsl" password="ahgsl" maxActive="100" maxIdle="30"
maxWait="-1" testOnBorrow="true" testOnReturn="true" testWhileIdle="true"
timeBetweenEvictionRunsMillis="100000"/>
</Context>
</Host>
2 . 在系統(tǒng)目錄 C:\WINDOWS\system32\drivers\etc 文件下找到 HOSTS
打開 修改為:
127.0.0.1 localhost
61.191.26.109 www.ahgcc.cn
注釋: 61.191.26.109是自己是服務(wù)器的IP
3. 配置自己的域名解析
看看別人的 http://q.sohu.com/forum/5/topic/717549