运行 PHP vue项目
下载项目放在www根目录下安装依赖,配置E:\phpStudy\PHPTutorial\Apache\conf\vhosts.conf
例如
<VirtualHost *:80> DocumentRoot "E:\phpStudy\PHPTutorial\WWW\blog\public" ServerName www.testblog.com ServerAlias www.testblog.com <Directory "E:\phpStudy\PHPTutorial\WWW\blog\public"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>
修改window 下host文件
127.0.0.1 www.testblog.com
这样就可以在浏览器下运行
www.testblog.com