httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugh E Cruickshank" <h...@forsoft.com>
Subject RE: [users@httpd] Directory hiding
Date Wed, 17 Sep 2008 03:23:37 GMT
From: Hugh E Cruickshank Sent: September 16, 2008 15:32
> From: Sean Conner Sent: September 15, 2008 23:36
> > It was thus said that the Great Hugh E Cruickshank once stated:
> > > 
> > > That may be the case but their recommendation is still: Issue a
> > > "404 - Not Found" response status code for a forbidden resource,
> > > or remove it completely.
> > 

[snip]

> > But, if you want to do it, then you'll need to do the following 
> > *for every directory under your webroot*:
> > 
> > 	RedirectMatch 404 ^/$
> > 	RedirectMatch 404 ^/path$
> > 	RedirectMatch 404 ^/path/$
> > 	RedirectMatch 404 ^/path/to$
> > 	RedirectMatch 404 ^/path/to/$
> > 	RedirectMatch 404 ^/path/to/directory$
> > 	RedirectMatch 404 ^/path/to/directory/$
> > 
> [snip]
> 
> I will give that a shot tonight.
> 

That worked like a charm.

Much thanks to all who replied.

Regards, Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message