logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Applying root directory attributes to all subdirectories
Author
Doozer



Joined: 18 Feb 2013
Posts: 1
Location: United Kingdom

PostPosted: Mon 18 Feb '13 14:10    Post subject: Applying root directory attributes to all subdirectories Reply with quote

Hi all,

I am running Apache2 server (version 2.2.16) on Debian Linux.

My document root for directory listings is set and in that folder I have a few other files to configure the formatting and visual effects. These are:
images(folder)
sorttable.js
style.css
index.php

These files make the root directory look very nice. If I navigate in to a subdirectory, all of the formatting and visual effects are lost and the standard text layout is shown. Is there a way I can get ALL subdirectories in the root directory to take on the visual and layout effects from the root directory?

I know it works if I manually copy each of the files to each of the subdirectories which would be fine, but the subdirectories are created dynamically and new ones are added regularly.

Please let me know if there is any easy way to do this, and if you need anymore info on my setup/ config/

Thanks.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 18 Feb '13 16:29    Post subject: Reply with quote

You can use

Code:

IndexOptions +XHTML
HeaderName /HEADER.php
ReadmeName /Footer.php


make sure you use absolute paths in the HTML
Back to top


Reply to topic   Topic: Applying root directory attributes to all subdirectories View previous topic :: View next topic
Post new topic   Forum Index -> Apache