LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-05-2006, 11:11 AM   #1
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

Rep: Reputation: 47
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 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.
 
  


Reply


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 11:38 AM
Apache 2, Virtual Hosts, Indexing Magueta Linux - Software 2 10-28-2004 02:21 PM
Apache indexing services not functioning player123496 Linux - Newbie 4 06-19-2004 02:39 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
Apache config file to add header and footer mindstormsguy Linux - Software 2 05-02-2004 12:48 PM


All times are GMT -5. The time now is 08:17 PM.

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