I have a development 'environment' under a virtual host on an apache server.
I'd to block this virtual host and all of it's sub directories for being indexed by search engines.
I have this code (which I pulled from another question on here) but his question was for the whole server, I'd just like sometime to confirm that this will work, and that it will only affect only the vhost and its subdirs ( I don't want the whole server affected )
<VirtualHost *:80>
ServerName d.domain.co.uk
ServerAlias www.d.domain.co.uk
DocumentRoot /var/www/html/d.domain.co.uk
# Block all robots on all subdirs
<Location "robots.txt">
SetHandler None
</Location>
Alias /robots.txt /var/www/html/d.domain.co.uk/robots.txt
</VirtualHost>
Regards, Matt