大网数据广告活动
网站运营与故障问答

Where does Apache get the 'last modifed' date for its automatic indexes?

· 52CE 我爱测

I have a Solaris server running Apache, and I am using the following .htaccess to generate automatic indexes. Options +Indexes # SET INDEX OPTIONS IndexOptions +NameWidth=* Where does the "Last modified" date come from in the ind…

问题原文

原帖链接 · Tim Swast · CC BY-SA 3.0

I have a Solaris server running Apache, and I am using the following .htaccess to generate automatic indexes.

Options +Indexes
# SET INDEX OPTIONS
IndexOptions +NameWidth=*

Where does the "Last modified" date come from in the index that is generated?

It does not appear to be from any of the filesystem dates.

Note that I copy these directories to this location. It seems to be showing the creation date for the directory that I copied, not the date that I copied it. If it's not the atime, ctime, mtime, or crtime, where does Apache find this date?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

The documentation states:

[Last-modified] is only valid if the operating system and file system return appropriate stat() results.

Since it is not working for your system, you can turn off the last-modified with: IndexOptions SuppressLastModified

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2013-05-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。