您的位置:首页 > 运维架构 > Apache

网站运维:Windows的xampp的Apache配置虚拟主机

2019-06-20 16:16 1496 查看

1、配置httpd.conf

在c:\xampp\apache\conf目录下,打开httpd.conf
改成下面这样

# Virtual hosts……虚拟主机
Include conf/extra/httpd-vhosts.conf
#DocumentRoot "c:/xampp/htdocs"

2、配置httpd-vhosts.conf

在C:\xampp\apache\conf\extra文件夹下,打开httpd-vhosts.conf
添加

#80端口
<VirtualHost *:80>
#管理员邮箱
ServerAdmin hahaha@qq.com
#网站主文件夹
DocumentRoot "C:/xampp/htdocs/"
#网址
ServerName www.abc.com

</VirtualHost>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: