|
Home > Archive > Apache Server configuration support > July 2007 > Directory access
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hello,
I want to disable directory browsing by clients. I've found that I have to
put this into httpd.conf to achieve it:
<Directory />
AllowOverride None
Order Deny,Allow
Deny from All
</Directory>
I did it, but it's still possible to access directories with webbrowser.
What should I do? I use Apache 2.2.3.
Thank you,
Matis
| |
| Kurt M. Weber 2007-07-11, 1:23 pm |
| Matis wrote:
> Hello,
>
> I want to disable directory browsing by clients. I've found that I have to
> put this into httpd.conf to achieve it:
>
> <Directory />
> AllowOverride None
> Order Deny,Allow
> Deny from All
> </Directory>
>
> I did it, but it's still possible to access directories with webbrowser.
> What should I do? I use Apache 2.2.3.
Did you tell Apache to reload its configuration after you made the changes?
--
Kurt M. Weber
<kmw@armory.com>
| |
| Your Best Friend 2007-07-11, 1:23 pm |
| In the root folder, add a .htaccess file. Somewhere, there should be a
line that reads Options All -Indexes
This will prevent all directory browsing from the folder it's in forwards.
Matis wrote:
> Hello,
>
> I want to disable directory browsing by clients. I've found that I have to
> put this into httpd.conf to achieve it:
>
> <Directory />
> AllowOverride None
> Order Deny,Allow
> Deny from All
> </Directory>
>
> I did it, but it's still possible to access directories with webbrowser.
> What should I do? I use Apache 2.2.3.
>
> Thank you,
> Matis
--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **
| |
|
| Kurt M. Weber wrote:
> Did you tell Apache to reload its configuration after you made the
> changes?
Yes, I did.
| |
|
| Your Best Friend wrote:
> In the root folder, add a .htaccess file. Somewhere, there should be a
> line that reads Options All -Indexes
> This will prevent all directory browsing from the folder it's in forwards.
It didn't help. I deleted "AllowOverride None" from httpd.conf, but it still
doesn't work.
| |
|
| On Jul 11, 12:46 pm, Matis <sit...@gazeta.pl> wrote:
> Your Best Friend wrote:
>
> It didn't help. I deleted "AllowOverride None" from httpd.conf, but it still
> doesn't work.
Find all the directories that you have been setting, you may allow the
indexes or all in the Options section.
|
|
|
|
|