How can I display a standard message with Directory Indexes

How can I display a standard message with Directory Indexes

Post by Thomas » Sun, 04 May 2003 09:06:38



Is there any way to include a standard message and a link that appears
on top of an index listing? (Directory Listing)

I want to allow users to browse around if they get into a directory,
but I want them to know how they got there and how to get back (with
the link to the home page).

 
 
 

How can I display a standard message with Directory Indexes

Post by David Efflan » Sun, 04 May 2003 09:58:20



Quote:> Is there any way to include a standard message and a link that appears
> on top of an index listing? (Directory Listing)

> I want to allow users to browse around if they get into a directory,
> but I want them to know how they got there and how to get back (with
> the link to the home page).

See HeaderName (page header) and ReadmeName (actually like a footer).  In
more recent apache versions you have to specify the actual filename and
may have to use AddType for that filename extension (even for text/html)
or it may end up escaping html tags to appear as plain text.

For example on one site I have to do (even though .html should be
text/html by default):

HeaderName HEADER.html
ReadmeName README.html
AddType text/html .html

--
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

1. Display Directory in Apache with index.html?

Apologies in advance if I've overlooked something really obvious, but
I have done a number of searches at groups.Google and apache.org.

Is there a way to display a directory listing when an index.html file
exists? (I'm looking to reproduce the apache behavior of loading the
file system when there is no index.html.) It seems that this must have
already be done in javascript or php, but I can't find _anything_.

I would like to display a sample application that I wrote so that some
others can view it, but the application needs to have an index.html
file. This is for a short class that I'm teaching and I would like the
folks to be able to view the source on-line after the class while
running the application to see how it works.

Thanks,
John

2. How to view the args of a program in ps when it goes to (name) ?

3. User configuration of the way server displays a directory index

4. nscd (mis)configuration linked to server "lock up" ?

5. listing a directory with an index.html (even with DirectoryIndex index.html)

6. Samba as PDC for NT clients??

7. How to stop the error message that shows when accessing Directory without an Index file.

8. Tar selected files showing relative path only

9. How to display message when entering directory?

10. LCSDNYR 2001 -> standards, standards, standards

11. "No Directory <substitute user directory here>" Message

12. Ext2 directory index, updated

13. specifing web file ordering before directory index