http {
...
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
找到/path/to/conf/nginx.conf 文件 添加上面三行重启nginx即可
nginx -s reload 重启nginx
Tips:window下 nginx的安装目录必须放在C盘 不然访问地址会报500 Internal Server Error
nginx配置
server {
listen 8080;
server_name 127.0.0.1;
location / {
root C:/Users/QJ/Desktop/nz;
index index.html index.htm;
}
}
nginx指令
nginx -s reload 重启