修改配置文件 conf/httpd.conf
1.加入下面两句
namevirtualhost *:80
include conf/vhosts
2.在conf目录中建立vhosts目录
然后在 vhosts 目录下面建立相应的站点配置文件
如建立 hhj.jb51.net.conf 文件
内容:
<virtualhost *:80>
serveradmin hhj@live.it
servername www.hhj.jb51.net
serveralias hhj.jb51.net
documentroot "f:\wwwroot\hhj.jb51.net"
directoryindex index.htm index.php
errorlog logs/hhj.jb51.net-error_log.log
customlog logs/hhj.jb51.net-access_log.log common
<directory "f:\wwwroot\hhj.jb51.net">
allowoverride all
options followsymlinks
order deny,allow
allow from all
</directory>
</virtualhost>
3.重启apache服务
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
-
-
UOS arm换源
清华源mv/etc/apt/sources.list /etc/apt/sources.list.bak备份原始...
[阅读全文]
-
-
IT基础与云计算
软路由器(IPtable)iptable是Linux上常用的防火墙软件。负载均衡负载均衡是网络基础构架的关键组件...
[阅读全文]
-
-
嵌入式行业职位分析
嵌入式开发涵盖硬件软件,开发链条很长,要根据自己的实际情况选择适应的职位。嵌入式的职位大概有:1、硬件工程师:负...
[阅读全文]
-
网友评论