Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

index screenshot

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

filesystem screenshot

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?

share|improve this question
    
Does it correctly report the last modified date of ordinary files (as opposed to directories)? What is the last modified date of the files contained in these directories? –  w3d May 16 '13 at 11:19
1  
Yes, files within these directories show the date correctly. For that matter, so do directories within these directories show the date correctly. –  Tim Swast May 21 '13 at 17:54
    
I'm pretty sure it has something to do with the fact that these wrong-date directories were copied, but I can't understand where else the date might be coming from. –  Tim Swast May 21 '13 at 17:54

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.