如何配置apache服务器
原创
©著作权归作者所有:来自51CTO博客作者liuyunshengsir的原创作品,请联系作者获取转载授权,否则将追究法律责任
1.修改hosts文件
# Copyright (c) 1993-2009 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
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
# 119.167.153.8 ltserver
<span style="background-color: rgb(255, 0, 0);">127.0.0.1 www.yunsheng.com</span>
2.修改tomcat配置文件server.xml
<Host name="<span style="background-color: rgb(255, 0, 0);">www.yunsheng.com</span>" appBase="webapps"
unpackWARs="true"
xmlValidation="false" xmlNamespaceAware="false"
deployOnStartup="false" deployXML="false" autoDeploy="false"
>
<Context path="" docBase="<span style="color:#ff6666;background-color: rgb(204, 0, 0);">project01</span>" debug="0"/>
</Host>