appserv 如何配置虚拟主机

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
原文地址:https://www.cnblogs.com/ymj0906/p/3006155.html