[ale] apache question
greg at turnstep.com
greg at turnstep.com
Tue Aug 21 20:55:06 EDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Can someone please tell me how I turn off directory listing
> for directories on a web server that do not have an index.html
> file? I can't locate this info in the config files or the
> docs.
mod_autoindex is the culprit, but what you want is to
*not* include the "Indexes" option for that directory.
The best way to do this is to deny it in the root
directory, and add it in on a case by case
(and directory by directory) basis
Example:
<Directory />
Options None
AllowOverride None
</Directory>
<Directory "/home/www/example.com">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
Deny from 216.3.21.36
Deny from 207.228.84.99
</Directory>
Remember to do use "apachectl graceful" before testing
the change.
Greg Sabino Mullane
- ----------------------------------------------------------------
/~\ The ASCII
\ / Ribbon Campaign *greg at turnstep.com*
X Against HTML PGP Key: 0x14964AC8
/ \ Email! 200108212053
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iQA/AwUBO4MC2bybkGcUlkrIEQJvSgCg7lzuJ8dSQfiVGnLAIaAOurHYN1YAoLYE
R0kcub8uL982PIKfVy0Bzyit
=mEO6
-----END PGP SIGNATURE-----
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list