当前位置: 代码迷 >> 综合 >> [nginx] html is forbidden(permission denied)
  详细解决方案

[nginx] html is forbidden(permission denied)

热度:38   发布时间:2023-12-12 01:18:24.0

problem

现象:启动ng后,应用日志报错403

[error] "/xxx/index.html" is forbidden(permission denied), client:xxx,server:localhost, request: "GET / HTTP/1.1" host:"xxx"

reason

原因:启动账户不存在,nobody,改为已经创建的账号ng
2.permission403.png

solution

修改/conf/nginx.conf

#user nobody; # 注释之前的用户
user nginx cft;

3.2.permission403.solve.png

  相关解决方案