源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Apache 多站点虚拟主机配置方法

  • 时间:2020-02-04 12:45 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Apache 多站点虚拟主机配置方法
修改配置文件 conf/httpd.conf [b]1.加入下面两句 [/b]NameVirtualHost *:80 Include conf/vhosts [b]2.在conf目录中建立vhosts目录 [/b]然后在 vhosts 目录下面建立相应的站点配置文件 如建立 hhj.jb51.net.conf 文件 内容:
[u]复制代码[/u] 代码如下:
<VirtualHost *:80> ServerAdmin hhj@live.it ServerName www.hhj.jb51.net ServerAlias hhj.jb51.net DocumentRoot "F:\wwwroot\hhj.jb51.net" DirectoryIndex index.html 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服务
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部