症状:
第一次安装进入管理面板,系统提示修改URL,点“更改”后,跳出红字报错“设置 siteURL 更新失败”。
点进“参数设置”,再点“站点信息”,手动修改站点URL后无法保存,一保存就跳出报错信息“设置pwa_background_color 更新失败”。
之前用 Debian 10 包管理器自带的 Nginx 1.14.2 没报出错。现在用 Debian 9 的自编译 Nginx 1.18.0 倒是出错了。
环境:
以普通用户身份运行 cloudreve
Debian 9 (Linux 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64)
nginx version: nginx/1.18.0
相关配置文件:
nginx.conf 配置文件
pid /var/run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;
events {
use epoll;
multi_accept on;
worker_connections 65535;
}
http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
log_not_found off;
types_hash_max_size 2048;
client_max_body_size 16M;
# MIME
include mime.types;
default_type application/octet-stream;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
# Gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
include vhost/*.conf;
#include waf.conf;
}
```