当前位置:首页 > 2021年4月9日

nginx 配置静态界面 访问返回403

root3年前 (2021-04-09)nginx567
在配置nginx 静态界面访问返回403没有访问权限一般是nginx 去访问静态文件时没有访问权限这种情况一般是因为文件放置的位置在root文件夹下,查看一下nginx 启动的user是什么一般都是www-data这种情况只能访问共享的文件...

Nginx proxy 代理网站常用优化配置

root3年前 (2021-04-09)nginx549
vim /etc/nginx/proxy_paramsproxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-F...