如何解决安装成功并配置后,Nginx 中的 Fancyindex 无法正常工作?
我在 https://www.nginx.com/resources/wiki/extending/converting/ 之后在 Nginx 1.14.2 中安装了fancyindex 模块。安装后,我检查
nginx -V
和 --modules-path 中的 ls 文件夹并看到:
ngx_http_fancyindex_module.so ngx_http_upload_module.so
我添加了
load_module /etc/nginx/modules/ngx_http_fancyindex_module.so;
在 nginx.conf 和
location /database {
auth_basic "Restricted";
auth_basic_user_file /u01/app/.htpasswd;
try_files $uri $uri/ =404;
autoindex_localtime on;
fancyindex on;
fancyindex_exact_size off;
fancyindex_default_sort date;
}
关于位置配置。但什么也没有发生。我检查错误日志文件但什么也没看到。我怎样才能找出问题所在?谢谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。