Forum Moderators: phranque
I have noticed that the root index looks a little different than what I am used to. I was able to add in the fancyindexing options.
My question is what else can be changed in regards to the appearance of the index? For instance I would like to change the default font..?
Any help or examples would be much appreciated, thank you!
HeaderNamein your base configuration (usually
httpd.conf, or in Apache 2.2 it has now been moved to
conf/extra/httpd-autoindex.conf). Base install looks like this:
HeaderName HEADER.html
The Apache documentation noted earlier tells us that the filename specified is done so as a URI path relative to the one used to access the directory being indexed. If the filename begins with a slash, it will be taken to be relative to the
DocumentRoot.
So, using the configuration above which is the default Apache configuration directive, we can assume that Apache is going to look for
HEADER.htmlin the same directory as the one being indexed. You would have to copy that same
HEADER.htmlto each and every directory you want to have that configuration. I imagine this is your dilemma and the problem for which you seek resolution.
Off the top of my head I would think that an Alias [httpd.apache.org] would work, but be careful that you don't use a path/filename combination that you might ever use in your hosted sites!
HeaderName /nonexistentdirectory/HEADER.html
Alias /nonexistentdirectory/HEADER.html /path/to/real/HEADER.html
If the filename begins with a slash, it will be taken to be relative to the DocumentRoot.
This allows you to use one header file for all directories, and it can be located anywhere below DocumentRoot. For example, to use the header file in /headers/global/header.html for all directories:
HeaderName /headers/global/header.html