时间:2023-06-02 16:16:41 来源: 人气:
403 forbidden是怎么回事?最近使用win7操作系统的用户反应打开网页后出现了403 forbidden 的提示,无法正常打开 网页,该怎么办呢?当我们打开网页出现【403 forbidden】的提示是HTTP状态码,出现这样的错误提示一般不是技术问题导致的,是由于网站问题引起,不是个人用户故障导致的。出现这样的问题站点维护人员可按下面方法进行修复。
查看nginx.conf文件,判断日志的输出地址。 vi /etc/nginx/nginx.conf 打开error.log,发现类型的日志,大致确认是权限问题 2017/09/04 10:52:25 [error] 8196#0: *14 open() "/home/guopei/blog/www/static/js/admin.bundle.js" failed (13: Permission denied), client: 104.192.108.10, server: geekfe.com, request: "GET /static/js/admin.bundle.js?v=67cf9.js HTTP/1.1", host: "blog.geekfe.com", referrer: "http://blog.geekfe.com/admin" 查看nginx进程 ps aux|grep nginx 返回如下 root 9145 0.0 0.4 122288 2176 ? Ss 10:56 0:00 nginx: master process /usr/sbin/nginx root 9146 0.0 0.7 122808 3880 ? S 10:56 0:00 nginx: worker process root 9212 0.0 0.1 112644 960 pts/0 S+ 10:57 0:00 grep --color=auto nginx 查看nginx.conf user nginx; 改成 user root; 重启nginx服务 service nginx restart; 重启后问题解决。
以上便是xiuchufang小编给大家分享的关于windows7系统中无法打开网站提示403 forbidden错误的解决方法!
![]() |
![]() |