Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Location
    Lincs, UK
    Posts
    152

    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
    Member, MySQL Guilds
    Author, "MySQL Clusterng" (Sams)

  2. #2
    Join Date
    Mar 2005
    Posts
    150
    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

  3. #3
    Join Date
    Jan 2005
    Location
    Lincs, UK
    Posts
    152
    Thanks for your suggestion. I am aware of robots.txt files but how do I make the same file block accesses to wwx.domain.tld but allow www.information-britain.co.uk?

    Many thanks,

    Alex
    Member, MySQL Guilds
    Author, "MySQL Clusterng" (Sams)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •