[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache Listings



On Mon, Jun 18, 2001 at 08:45:23AM +0800, Anthony J.  Breeds-Taurima wrote:
> On Sun, 17 Jun 2001, Jonathan Daugherty wrote:
> 
> > Does anyone know how to customize how apache lists files in
> > directories without index.html?  Perhaps a perl script to
> > generate the pages, or something like that?
> 
> Use the config directive "DirectoryIndex"  By defaul it is:
> DirectoryIndex index.html
> 
> Just add what ever you want there ie
>	DirectoryIndex index.html index.htm INDEX.HTM Default.htm index.php3 index.cgi
> 
> If you want to use the last one, which can be used to
> dynamically create the directory indexes you need to have:

>	AddHandler cgi-script .cgi .sh .pl
> enabled and you give the approriate directories ExecCGI options.

first,

	apt-get install apache-doc

then look under /usr/share/doc/apache/manual/mod/index.html for

	core -->
		<location>
		<directory>
		<files>
	mod_autoindex -->
		indexoptions
		addiconbytype
		fancyindexing
		...and others...
	mod_dir -->
		directoryindex

some really cool things to mess with (and mess up).

save your working httpd.conf before you munge it, by the way.

-- 
DEBIAN NEWBIE TIP #46 from Will Trillich <will@serensoft.com> 
:
Troubled by MAC-FORMAT TEXT FILES? There are many ways
to translate CR to LF. VIM can help, with these steps:
	:set ffs=mac
	:e!
	:set ff=unix
and then save/write the file (":opt" for more info).
In perl, this'll do the trick:
	perl -pi.mac -l12 -015 -e ';' filename*pattern.txt
(that's a <hyphen-el-one-two> and <hyphen-zero-one-five>, by
the way -- see "perldoc perlrun" for more info.)

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: