diff --git a/script/nginx.conf b/script/nginx.conf index 73b6f5d..74a8269 100644 --- a/script/nginx.conf +++ b/script/nginx.conf @@ -32,6 +32,7 @@ http { index index.html index.htm; try_files $uri $uri/ /index.html; gzip_static on; + error_page 405 = 200 http://$host$request_uri; location /api { proxy_pass http://api.rspanel.cn; proxy_set_header Host $host;