滑县网站建设哪家便宜,wordpress查询次数太多,小程序制作用华网天下推荐,梧州论坛红豆思辨文章目录 1. 文件名过长问题1.1 在centos中文件所谓位置etc/httpd/conf.d/httpd-autoindex.conf1.2 在配置文件httpd-autoindex.conf中的修改#xff1a;1.3 修改完成后重启Apache#xff1a; 1. 文件名过长问题 1.1 在centos中文件所谓位置etc/httpd/conf.d/httpd-autoindex… 文章目录 1. 文件名过长问题1.1 在centos中文件所谓位置etc/httpd/conf.d/httpd-autoindex.conf1.2 在配置文件httpd-autoindex.conf中的修改1.3 修改完成后重启Apache 1. 文件名过长问题 1.1 在centos中文件所谓位置etc/httpd/conf.d/httpd-autoindex.conf
可通过find查找文件所在位置
find / -name httpd-autoindex.conf1.2 在配置文件httpd-autoindex.conf中的修改
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth* FoldersFirst CharsetUTF-8 SuppressDescription SuppressHTMLPreamble其中
FancyIndexing 支持美化显示
HTMLTable 允许底层代码把文件列表生成在一个table元素里面
VersionSort 安装版本排序
NameWidth* 页面自动匹配文件名宽度
FoldersFirst 安装文件夹优先排列
CharsetUTF-8 支持中文显示
SuppressDescription 不显示文件描述
1.3 修改完成后重启Apache
命令
service httpd restart重启时遇到报错问题
Job for httpd.service failed because the control process exited with error code. See systemctl status httpd.service and journalctl -xe for details.解决办法
先卸载httpd和mod_wsgi
yum remove httpd mod_wsgi重新安装
yum -y install httpd mod_wsgi 重新安装完成后上面的配置还要再来一次然后重启就成功了。
在配置文件httpd-autoindex.conf中的修改
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth* FoldersFirst CharsetUTF-8 SuppressDescription SuppressHTMLPreamble参考: https://blog.csdn.net/yinshuilan/article/details/124814096