LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache auto-indexing - add header to every page... (https://www.linuxquestions.org/questions/linux-software-2/apache-auto-indexing-add-header-to-every-page-399856/)

kasl33 01-05-2006 11:11 AM

Apache auto-indexing - add header to every page...
 
I apologize if this has been asked, but I couldn't find the answer anywhere, including Google and LQ.org.

I am running Apache 2.0.54 on Mandriva 2006 and have the default setup of the ADVX.org package that they boast. It has always worked well and quickly.

I am using HEADER.html and README.html to append a header and footer to the directory indexing page - this is going on with the following code in httpd.conf:

Code:

# 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.
    ReadmeName README.html
    HeaderName HEADER.html

    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing.  Shell-style wildcarding is permitted.
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

It is really difficult to add a header and footer page to every sub directory, and I need to know if and how it is possible to automatically add the header and readme files to every directory automatically.

I tried this:

HeaderName /var/www/html/HEADER.html

to no avail.


All times are GMT -5. The time now is 02:50 PM.