PHP之路——PHPStudy虚拟主机

一:

Apache/conf/httpd.conf打开以下扩展

LoadModule rewrite_module modules/mod_rewrite.so

LoadModule vhost_alias_module modules/mod_vhost_alias.so

Include conf/extra/httpd-vhosts.conf

 

二:

Apache/conf/extra/httpd-vhosts.conf下添加

<VirtualHost *:8080>
    DocumentRoot "e:/js/"
    ServerName blog.hd
</VirtualHost>

 

三:

C:\Windows\System32\drivers\etc\hosts下添加

127.0.0.1 blog.hd

posted @ 2016-07-23 20:35  偏执Dog  阅读(169)  评论(0编辑  收藏  举报