Password Protect one virtualhost

Hi,

I have a folder, /www, which is served up on 4 servers. They all can be called directly (wwx.domain.tld), or via a LVS ldirectord box on a shared IP (www.domain.tld).

What I want to do is prevent google from indexing each individual server (wwx.domain.tld) by password protecting it, but allow access to www.domain.tld without a password.

So far I have tried using <Location /> within a <VirtualHost> directive to no avail - it ends up protecting all requests. Is there an easy way of achieving this - i.e. different authentication settings for the same folder depending on what virtualhost it is in?

Many thanks,

Alex Davies

 

 

 

 

Top