farmdve wrote:Also where can i edit the mod_autoindex so i can change the apppearance of the def. style iread the article but its pointless in reading because it doesnt say wich file to open etc..
To change the default appearance of a directory index listing there are many options which can be placed in the
httpd.conf file or more specifically, and the preferred file, in the
httpd-autoindex.conf file, for a server wide solution.
Or in a
<Directory> directive in the
httpd-vhosts.conf file for a domain specific solution.
Or on a directory by directory basis, within a
.htaccess file in the directory you wish to display an index list of files.
These are the official Context locations from the Apache Docs:
server config -
.\xampp\apache\conf\httpd.confpreferred server config -
.\xampp\apache\conf\extra\httpd-autoindex.confvirtual host -
.\xampp\apache\conf\extra\httpd-vhosts.confdirectory - within a
<Directory> directive
.htaccess - within a
.htaccess file in a directory to be indexed.
The default file icons used in XAMPP for file indexes are to be found here:
.\xampp\apache\icons(
read the README file in this directory for useful info).
These public domain icons may be customized or replaced to suit your own web site design and are configured server wide in the
httpd-autoindex.conf file.
IMPORTANT - always make a backup of .conf and .ini files before making any edits and always restart the server for any edits you make to be recognized.
The Apache Documentation explains what you can do in changing the appearance of the default listing to suit just about every need.
http://httpd.apache.org/docs/trunk/mod/ ... index.htmlCascading Style Sheets (
CSS) are among the favored methods as this allows for plain, image or gradient backgrounds, different text colors, sizes and fonts etc. to display your directory index in the same style and design of your web site.
IndexSyleSheet is referenced here:
http://httpd.apache.org/docs/trunk/mod/ ... stylesheetThis subject is not as easy or as simple as opening and editing a file and setting some configurations but is about reading, learning, investigating and experimenting with the methods outlined in the Apache Documentation.
BTW -
mod_autoindex_color is enabled by default in the server's httpd.conf file and all that is required of you now is to read and then implement some of the methods outlined in the Apache Docs - this is too big a subject to just give you a '1-2-3 how to do it' response.
AutoIndex PHP Script v2.0If you don't want to learn the above method for what ever reason there is an
AutoIndex PHP Script (Directory Indexer) available from SourceForge that may do the trick for you.
Note v2.0 is for php5 only and v1.0 is for use if you using php4.
This
Screen Shot may give you some idea what it can do.
Their
Support Forum would be the place to ask any questions about what the script is capable of, and you can find posts about customizing with CSS and Templates in the Development forum.