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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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> |
|
|||
|
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 ** |
|
|||
|
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: > > 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. |
|
|||
|
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 |