Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

customising directory indexes

Status
Not open for further replies.

iwasinnamuknow

Technical User
Nov 1, 2001
33
GB
i would like to add headers, footers and descriptions to my directory index. i know these functions are discussed is the apache docs but i can't find them.

also, i have a series of files with consecutive numbering as the titles. at the moment they are displayed like this:

1.txt
10.txt
2.txt
...
8.txt
9.txt

how can i make them come up as:

1.txt
2.txt
3.txt
...
9.txt
10.txt

thanks in advance
 
Hi mate,

I think that "FancyIndexed" give you the order of files that you want, but I am not totally sure..

For the descriptions..

AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz

For the headers and footers..

ReadmeName README
HeaderName HEADER

Apache will first look for these files as .html and if they do not exist then .txt

Hope this helps Wullie

 
is there any way i can take the descriptions from a text file to create somthing like the download index at apache.org which has an individual description for each file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top