httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] limiting diretory/file content?
Date Thu, 26 Nov 2009 09:48:59 GMT
Zachary Uram wrote:
> I wish to use Apache 2.2 to limit where users may go. I wish to avert
> the so-called "fishing" where a user sees:
> (note that I will be using name based virtual hosts to host multiple
> domains on the same physical server/same ip)
> and tries to access
> I would like it on a directory basis, a file basis may be needed later
> but not for now.
> How may I achieve this? A sample config info would be appreciated
> since I never did this before :)
> If a user tries to access a forbidden directory I wish to display a
> custom message to them like "Stop that!" or something so also how may
> I do that?
the easiest way :

set a global DirectoryIndex to the error page you want, and override it 
in <Directory> sections where you want something else.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message