Apache conf set X-Robots-Tag for all vHosts

Create a file under /etc/apache2/conf-enabled with following content

Header Set X-Robots-Tag “noindex, nofollow, noarchive, nosnippet”

Check your config with wget –server-response –spider example.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s