[NTLUG:Discuss] Website
Rob Apodaca
rob.apodaca at attbi.com
Wed May 21 15:21:38 CDT 2003
On Wed, 21 May 2003 16:12:03 -0500
"Richard Humphrey" <richard at multicam.com> wrote:
> I have seen many sites where a person will have RPMS for download and
> the page is usually called INDEX of /RPMS or something to that effect.
> What I want to know is, does apache do this automatically somehow, or do
> I need to create the .htm file myself and hyperlink the RPMS etc. I see
> so many of these that it leads me to believe there is an automated way
> to accomplish this.
This is controlled by the Options indexes directive in httpd.conf. Different
distributions turn this on or off by default. For your document directory, you
need to use "Options Indexes". This tells apache to provide a directory
listing in the absecse of an index.htm type file.
<Directory "/var/htdocs">
Options Indexes
</Directory>
For more info:
http://httpd.apache.org/docs-2.0/mod/core.html#options
You could also create a .htaccess file for that particular directory to allow
directory listings if you don't want to modify your httpd.conf file.
Cheers,
-Rob
More information about the Discuss
mailing list