1.修改用户
www用户修改为root用户,否则报错403
2.配置
server {
listen 80;
listen 443 ssl http2;
server_name software.moonjer.com;
index index.php index.html index.htm default.php default.htm default.html;
autoindex on; # 显示目录
autoindex_exact_size on;# 显示文件大小
autoindex_localtime on;# 显示文件时间
charset gbk,utf-8;
root /software;
}
评论 (0)