Mobile app version of vmapp.org
Login or Join
Bryan171

: Where does Apache get the 'last modifed' date for its automatic indexes? I have a Solaris server running Apache, and I am using the following .htaccess to generate automatic indexes. Options

@Bryan171

Posted in: #Apache #OperatingSystem

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

I found reason of this issue: mod_autoindex uses mtime of index.html inside folder, not folder mtime.
Reproduced on CentOS 6 with latest updates.

10% popularity Vote Up Vote Down


 

@BetL925

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme