如何配置apache服务器
2024-06-28 06:18:10 阅读次数:345
apache,服务器
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 # source server
# 38.25.63.10 # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
# 119.167.153.8 ltserver
<span >127.0.0.1
2.修改tomcat配置文件server.xml
<Host name="<span ></span>" appBase="webapps"
unpackWARs="true"
xmlValidation="false" xmlNamespaceAware="false"
deployOnStartup="false" deployXML="false" autoDeploy="false"
>
<Context path="" docBase="<span >project01</span>" debug="0"/>
</Host>
版权声明:本文内容来自第三方投稿或授权转载,原文地址:https://blog.51cto.com/liuyunshengsir/5998219,作者:liuyunshengsir,版权归原作者所有。本网站转在其作品的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如因作品内容、版权等问题需要同本网站联系,请发邮件至ctyunbbs@chinatelecom.cn沟通。
上一篇:网络系统管理Linux环境——10.AppSrv之DNS
下一篇:为OCS2007配置边缘服务器