-
修改httpd.conf
//去掉下面语句前的# 154行 #LoadModule rewrite_module modules/mod_rewrite.so 174行 #LoadModule vhost_alias_module modules/mod_vhost_alias.so 516行 #Include conf/extra/httpd-vhosts.conf //修改代码 240行 <Directory /> AllowOverride none 改为 AllowOverride all Require all denied 改为 Require all granted </Directory>
-
修改httpd.vhosts.conf,在底部增加站点配置
<VirtualHost *:80> DocumentRoot E:/hello ServerName hello.com </VirtualHost>
-
修改hosts文件,在底部增加域名
127.0.0.1 hello.com
网友评论