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?
Password protection isn't really an option you should be looking at. All you need to do is prevent google from indexing the site, Google allows you to do this. In fact, it's explained on their webpage here: http://www.google.com/webmasters/remove.html