Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-05-2006, 12:11 PM   #1
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Question 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

I am running Apache 2.0.54 on Mandriva 2006 and have the default setup of the 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:

 # 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Small problem with apache - Indexing ThorRune Linux - Software 5 07-03-2005 12:38 PM
Apache 2, Virtual Hosts, Indexing Magueta Linux - Software 2 10-28-2004 03:21 PM
Apache indexing services not functioning player123496 Linux - Newbie 4 06-19-2004 03:39 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 01:35 PM
Apache config file to add header and footer mindstormsguy Linux - Software 2 05-02-2004 01:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration