(SH)Saeed
12-31-2000, 09:42 AM
Hi,
I have a simple question, How do you turn the directory index off so people can't browse the directories with not index page!?
If I'm not misstaking itīs either in httpd.conf or .htaccess you do this. But what do you type?
Thanks,
Saeed
sodapopinski
12-31-2000, 09:55 AM
Hi,
Please correct me if I'm wrong.
For individual account:
make an .htaccess file and type
Options -Indexes
Upload that file into public html dir and chmod 644
They other way,
Find comment:
Options Includes ExecCGI Indexes FollowSymLinks MultiViews
and change it become:
Options Includes ExecCGI -Indexes FollowSymLinks MultiViews
then re-start the Apache
Hope this correct :D
Thx.
Soda
(SH)Saeed
12-31-2000, 04:41 PM
Thanks a lot soda, it worked perfectly!
Saeed
:beer:
SepsisNet
02-07-2001, 06:24 AM
I'm hosting on a Cobalt RaQ, and I attepted the .htaccess method, without luck. Is there any other parameters that should be included in the .htaccess file, such as </directory> ...etc?
Would I need to contact my SysAdmin for extra help?
I want surfers trying to peek into my weblogs to receive a 403 Forbidden message. Currently I have a blank HTML page in place.
Thanks,
Ryan
Originally posted by sodapopinski
Hi,
Please correct me if I'm wrong.
For individual account:
make an .htaccess file and type
Options -Indexes
Upload that file into public html dir and chmod 644
They other way,
Find comment:
Options Includes ExecCGI Indexes FollowSymLinks MultiViews
and change it become:
Options Includes ExecCGI -Indexes FollowSymLinks MultiViews
then re-start the Apache
Hope this correct :D
Thx.
Soda
[Edited by SepsisNet on 02-07-2001 at 05:34 AM]
allan
02-07-2001, 09:07 AM
Ryan,
Check with your webhost provider. Its possible to disallow the use of .htaccess files, or to require them to be named something else.
SI-Chris
02-07-2001, 10:11 PM
Ryan: Where are you putting the .htaccess file? If you put it in /home/sites it should cover the entire server, except for directories that have their own .htaccess files. I don't know what kind of RaQ you have, but on a RaQ 4 if you install the FrontPage extensions it adds its own .htaccess file to the directory; you need to go in and modify the file to turn off directory listings (be careful... and be sure to back up).