Nginx   发布时间:2022-05-11  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了nginx客运轨道 – 403禁止错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

我已经安装Nginx服务器并配置了所有需要的东西,但是目前我有403的禁止错误的错误.日志说:

2010/12/28 17:38:59 [error] 28664#0: *27 directory index of "/home/appuser/test_app" is forbidden,client: xxx.xxx.xxx.xxx,server: localhost,request: "GET / http/1.1",host: "xxx.xxx.xxx.xxx"

我的配置:

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    passenger_root /usr/lib64/ruby/gems/1.8/gems/passenger-3.0.2;
    passenger_ruby /usr/bin/ruby;
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;
        root /home/appuser/test_app;
        passenger_enabled on;
    }
}

任何解决方案

最佳答案
更改

/home/appuser/test_app

/home/appuser/test_app/public

大佬总结

以上是大佬教程为你收集整理的nginx客运轨道 – 403禁止错误全部内容,希望文章能够帮你解决nginx客运轨道 – 403禁止错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: