Directory access

This is a discussion on Directory access within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I want to disable directory browsing by clients. I've found that I have to put this into httpd....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2007
Matis
 
Posts: n/a
Default Directory access

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
  #2 (permalink)  
Old 07-11-2007
Kurt M. Weber
 
Posts: n/a
Default Re: Directory access

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>
  #3 (permalink)  
Old 07-11-2007
Your Best Friend
 
Posts: n/a
Default Re: Directory access

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 **
  #4 (permalink)  
Old 07-11-2007
Matis
 
Posts: n/a
Default Re: Directory access

Kurt M. Weber wrote:

> Did you tell Apache to reload its configuration after you made the
> changes?


Yes, I did.
  #5 (permalink)  
Old 07-11-2007
Matis
 
Posts: n/a
Default Re: Directory access

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.

  #6 (permalink)  
Old 07-11-2007
kwan
 
Posts: n/a
Default Re: Directory access

On Jul 11, 12:46 pm, Matis <sit...@gazeta.pl> wrote:
> 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.


Find all the directories that you have been setting, you may allow the
indexes or all in the Options section.

  #7 (permalink)  
Old 07-12-2007
Matis
 
Posts: n/a
Default Re: Directory access [SOLVED]

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.


OK, I solved the problem by specifying directories which I wanted to be
restricted from public browsing.

Thanks,
Matis
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0