httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] more than one directory per lin
Date Fri, 12 Dec 2003 05:35:36 GMT
M.D. DeWar wrote:
> If I use the same .htpasswd file can I put them all in one
> statement in the httpd.conf  or does each dir need its own
> <directory /some/dir>
>  auth basic
>     yada
>      yada
> </directory>
> or can I put
> <directory /some/dir  another/dir  etc>

Unless they share a common parent directory, I think you will have to
declare a Directory block for each one. There might be some obscure tricks
(likely to involve mod_rewrite) which could allow you to only have one auth
section, but that's more trouble than it's worth.

Robert Andersson

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