What "Last modified" means in an Index of / listing
Published
A page titled Index of / is not a page anyone wrote. It is a directory
listing the web server generates when a folder has no index.html, and the
Last modified column in it is the server reading its own file system out
loud. That makes it a precise record of one specific thing, and a misleading
one when read as anything else.
Where the value comes from
Both of the common servers take the column from the file’s modification time,
the mtime the operating system keeps for every file. In Apache’s
mod_autoindex the listing entry is filled from the file’s finfo.mtime; in
nginx’s autoindex module it comes from the directory entry’s mtime. Neither
looks inside the file, at its metadata, or at anything the publisher wrote.
The format tells you which server built the page:
| Server | Column format | Example | Clock |
|---|---|---|---|
| Apache 2.4 | %Y-%m-%d %H:%M |
2026-10-14 09:32 |
Server local time, unlabeled |
Apache 2.2, or 2.4 with UseOldDateFormat |
%d-%b-%Y %H:%M |
14-Oct-2026 09:32 |
Server local time, unlabeled |
| nginx | %02d-%s-%d %02d:%02d |
14-Oct-2026 09:32 |
UTC, unless autoindex_localtime on |
Apache’s documentation records that the 2.4 format was a change made
“inadvertently” in 2.4.0, and the UseOldDateFormat option exists to restore
the older one. So 14-Oct-2026 alone does not prove nginx. A Description column beside
the date, which nginx listings do not have, points to Apache, and so does the
server signature line Apache prints at the foot of the listing when it is
enabled.
The time zone is the trap. nginx prints UTC by default, and its
autoindex_localtime directive switches it to the server’s zone. Apache always
prints local time and never says which zone that is. A server in Frankfurt and
one in Virginia print the same moment six hours apart, and neither listing
shows a zone label. Treat the time of day as approximate unless you know where
the server runs.
What resets it
The modification time moves whenever the file’s content is written on that machine, and ordinary operations write it:
- Uploading or copying the file. A plain
cpgives the copy the current time;cp -pkeeps the original. Tested here: a file stamped 2020-01-01 came out ofcpwith today’s date and out ofcp -pwith 2020-01-01. - Deploying from Git. Git does not record modification times, so a clone or checkout writes every file with the moment of the checkout. A repository file last changed in 2020 showed the time of the clone when we tested it.
- Restoring a backup or migrating hosts, when the tool used does not preserve times.
- Editing the file in place, which is the one case where the column means what it appears to mean.
Folder rows behave differently. A directory’s modification time changes when an entry inside it is added, removed or renamed, and editing a file inside it leaves the folder’s time alone. A folder showing yesterday can hold files untouched for years.
So a listing where every file shares one timestamp, to the minute, is showing you a deploy or a copy. Real edit histories are uneven. This is the same signature as a CMS migration stamping one date across a whole archive, covered in how to spot a date that has been bumped.
When it is useful
The column is good evidence for a narrow claim: this copy of this file was on this server, in this form, by this time. That is enough for several real tasks:
- Telling whether a file was replaced recently, when you have checked the listing before.
- Sorting a folder of reports or datasets to find the newest one. Apache
listings sort by date when you add
?C=M;O=Dto the URL. - Putting an upper bound on how recent a document can be, alongside its first archive capture.
It is weak evidence for when a document was written or first published. For a PDF or an image, the file’s own metadata and any date printed inside it come first (the file date checker reads a PDF’s or Office file’s own dates, and the EXIF viewer a photo’s), and the last modified date checker explains why the HTTP header carrying this same file system time ranks below anything the publisher wrote. For the moment a URL first appeared, an archive capture predates any copy the server holds now, and dating a page with the Wayback Machine shows how to query one.
When the column is missing
Apache’s SuppressLastModified option removes the column, and some
administrators turn listings off entirely, which is why an Index of / page
can vanish from a site that still serves the same files. When the listing is
gone, request a file directly and read its Last-Modified response header. On
a static file served from disk, the header usually carries the same file system
time the listing showed, with the same caveats and one improvement: HTTP dates
are always in GMT, so the zone is no longer a guess.
Questions this guide gets asked.
- What does Last modified mean on an Index of / page?
- It is the modification time the server's file system holds for each file, the same value the ls -l command shows. Apache and nginx both read it straight from the file system when they build the listing. It records when the file's bytes were last written on that server, which can be the day the file was uploaded or copied there, not the day it was created.
- What time zone is the Last modified column in?
- It depends on the server. nginx prints UTC unless the administrator turns on autoindex_localtime. Apache prints the server's local time and does not label the zone, so a listing alone does not tell you which zone you are reading.
- Can I use the Last modified date as the publication date of a PDF?
- Only as a weak upper bound for that copy of the file. It shows the file existed on the server in its current form by that time. A copy, a backup restore or a site migration resets it, so a document written years ago can show last week. Look for a date inside the document and an archive capture of the URL before citing it.
More answers on the full FAQ, or see exactly how each signal is weighted in the methodology.
The ladder in this guide is exactly what our tool automates.