nginx 代理服务 http 206

服务迁移之后访问登录页面发现js文件http请求状态

Status Code:
206 ,直接请求文件或者请求服务端口都正常。

nginx配置:access_log /opt/logs/nginx/ht.acc.log;

重启nginx

tail 日志:

2018/03/01 14:36:36 [crit] 12873#0: *56 open() "/usr/local/nginx/proxy_temp/4/01/0000000014" failed (13: Permission denied) while reading upstream, client: xxx, server: xxxx, request: "GET /js/plugins/cryptojs/crypto-js.js HTTP/1.1", upstream: "http://127.0.0.1:8011/js/plugins/cryptojs/crypto-js.js", host: "xxxx", referrer: "http://xxxx/toLogin.do"

显示proxy_temp权限不足

 授权nginx目录:chown www. . -R

重启nginx

测试发现正常了。




你可能感兴趣的:(nginx)