我已经安装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;
}
}
任何解决方案
最佳答案
更改
原文链接:https://www.f2er.com/nginx/434588.html/home/appuser/test_app
至
/home/appuser/test_app/public