virtualhost 文件修改地址
E:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf
更改案例
The original
Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
The editted
<VirtualHost *:80>
ServerName blog.test
ServerAlias blog.test
DocumentRoot "${INSTALL_DIR}/www/blog/public/"
<Directory "${INSTALL_DIR}/www/blog/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>