这里推荐的工具为phpstudy一键安装工具,这个工具可以快速建立站点,方便配置。
官方下载地址:http://www.phpstudy.net/a.php/211.html
安装完成后,打开控制页面,其它选项菜单,站点域名管理

建立一个新的站点

打开host文件,定义刚才的域名指向到127.0.0.1


切换版本 php7 + nginx

打开配置文件

在配置文件中找到你对应的站(a.j.com),下图地方加上修改代码

~~~
location / {
ssi on;
ssi_silent_errors on;
ssi_types text/html;
index index.html index.htm index.php;
}
~~~
重启