Universal htaccess across all VirtualHosts?

Universal htaccess across all VirtualHosts?

am 29.11.2007 04:31:26 von dterrors

I want to password protect every directory on every document root of
every virtualhost. All with the same Authname / password. Can I do
this in one place in the conf or do I have to do it in each
Virtualhost individually.

Each site is hosted in it's own subdir of /var/www/ if that matters,

This is with Apache 2.2.3,

Re: Universal htaccess across all VirtualHosts?

am 30.11.2007 00:16:47 von shimmyshack

On Nov 29, 3:31 am, dterr...@hotmail.com wrote:
> I want to password protect every directory on every document root of
> every virtualhost. All with the same Authname / password. Can I do
> this in one place in the conf or do I have to do it in each
> Virtualhost individually.
>
> Each site is hosted in it's own subdir of /var/www/ if that matters,
>
> This is with Apache 2.2.3,

just doi what you normally do but require a valid user for the
directory above them all.
nowhere must there exist other allow deny with "satisfy any", or they
may be allowed in that directory despite the previous require
directive.

Re: Universal htaccess across all VirtualHosts?

am 30.11.2007 06:17:28 von spam

wrote in message
news:0e4a7953-4ecb-4fa5-a2be-07b0f1aaa961@o6g2000hsd.googleg roups.com...
>
> I want to password protect every directory on every document root of
> every virtualhost. All with the same Authname / password. Can I do
> this in one place in the conf or do I have to do it in each
> Virtualhost individually.
>
> Each site is hosted in it's own subdir of /var/www/ if that matters,
>
> This is with Apache 2.2.3,

Yes. Do it inside "" and it wil work.