win10系统配置虚拟主机
1.用记事本或Sublime Text打开httpd.conf
ctrl + f 搜索httpd-vhosts.conf
http://files.jb51.net/file_images/article/201801/201801271335444.png
将
#Include conf/extra/httpd-vhosts.conf
的#号去掉保存
2.打开extra/httpd-vhosts.conf
添加如下内容:
ServerAdmin webmaster@youremail.com
DocumentRoot "E:/your_web_root"
ServerName your.web.com
ErrorLog "logs/your_web_error.log"
CustomLog "logs/your_web_access.log" common
页:
[1]