全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2785|回复: 28

[Windows VPS] 一直听你们吹,nginx 也太难用了吧

[复制链接]
发表于 2019-5-16 21:56:54 | 显示全部楼层 |阅读模式
本帖最后由 Cllp 于 2019-5-17 09:57 编辑

文件名有60个字符,只能显示前面50个,后面不显示






古狗上找到的
"
According to ngx_http_autoindex_module documentation, configuration of column width for autoindexed pages is not available. Compiling from the source would be the only way to make this change. "
不编译安装,有法破吗
发表于 2019-5-16 22:00:03 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2019-5-16 23:23:11 | 显示全部楼层
不是nginx的问题,而是。。。
发表于 2019-5-16 21:57:54 来自手机 | 显示全部楼层
你得设置编码

点评

你们不懂我  发表于 2019-5-16 22:11
发表于 2019-5-16 21:58:54 来自手机 | 显示全部楼层
编码问题zsbd
发表于 2019-5-16 21:59:08 | 显示全部楼层
nginx不好用那用啥
 楼主| 发表于 2019-5-16 21:59:09 | 显示全部楼层

fancyindex_name_length 500; 没用啊
发表于 2019-5-16 22:00:20 | 显示全部楼层
https://ark.tf/16.html

location / {
    root /home; # 需要开启浏览功能的目录
    autoindex on;  # 开启目录文件列表
    autoindex_exact_size off;  # 不显示文件的确切大小,以KB,MB,GB显示
    autoindex_localtime on;  # 显示的文件时间为文件的服务器时间
    charset utf-8,gbk;  # 避免中文乱码
}

点评

你上面这些我都有 加了autoindex_name_length 500; 报错  发表于 2019-5-16 22:04
发表于 2019-5-16 22:01:12 来自手机 | 显示全部楼层
Cllp 发表于 2019-5-16 21:59
fancyindex_name_length 500; 没用啊


name length这英文明显翻译也不是编码吧。 charset utf-8,gbk
发表于 2019-5-16 22:01:59 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2019-5-16 22:02:22 | 显示全部楼层
哈哈哈嗝,我就看看评论
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-26 09:11 , Processed in 0.071247 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表