nginx打开目录浏览功能失败

新手上路,请多包涵

第一次用nginx,安装了h5ai,权限也改了,能正常显示界面但是看不到目录,也按照作者的要求设置了,nginx.conf如下:

http {
    include  mime.types;
    default_type  application/octet-stream;

    sendfile  on;
    keepalive_timeout  65;

    index  index.html  index.php  /docs/_h5ai/public/index.php;

    server {
        listen  80;
        server_name  local;
        root  /home/wwwroot/docs;

        location / {
            autoindex  on;
        }

        location ~ \.php$ {
            include  fastcgi.conf;
            fastcgi_index  index.php;
            fastcgi_pass  unix:/tmp/php-cgi.socket;
        }
    }
}
阅读 3.4k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题