您的位置:首页 > 移动开发

appserv 如何配置虚拟主机

2013-04-07 21:03 218 查看
appserv 套件安装时,怎么配置虚拟主机

1. 安装
2. 配置http.conf文件

2.1启用虚拟主机
把#去掉
LoadModule vhost_alias_module modules/mod_vhost_alias.so
2.2启动虚拟主机文件
Include conf/extra/httpd-vhosts.conf

3. 再 httpd-vhosts.conf添加虚拟主机的配置

ServerAdmin jsw7001@hotmail.com
DocumentRoot C:/AppServ6/www/abc # 这里指定你的虚拟主机目录的绝对路径
ServerName www.infoshare.com # 网站名
ErrorLog C:/AppServ6/www/abc/error.log
CustomLog logs/dummy-host2.appservnetwork.com-access_log common

4.hosts文件中添加 配置
127.0.0.1 www.infoshare.com

5.启动apache,测试 http://www.infoshare.com/index.php
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: