HTTP folder list welcome message?

michaelsanford

Translator, Web Developer
I've seen other sites do this: for a site that has folder listing enabled, they somehow put a welcome message at the top of the page above the listing.

How does one do that? I presume it's a hidden file that resides inside the particular folder...
 
Have a look in httpd.conf for Apache (/etc/httpd/httpd.conf) and I believe you will find something in there called "ReadMe" or something. It's basically a switch you can set so that Apache displays a file called "readme.txt" or simular if one does exist in the current directory..
 
Cool! Found it, thanks didde!

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
#
# If MultiViews are amongst the Options in effect, the server will
# first look for name.html and include it if found. If name.html
# doesn't exist, the server will then look for name.txt and include
# it as plaintext if found.
#
ReadmeName README
HeaderName HEADER
 
ok...I put a README file in a directory...when I go to that dir in my web browser, README isn't display as a file, but it's not showing at the top of the page. is the README file just supposed to be text?
 
No, it reads the extensions.

First it looks for readme.html, then readme.txt

Make sure your files have extensions.
 
Back
Top