5,337
edits
No edit summary |
|||
Line 105: | Line 105: | ||
==Headers== | ==Headers== | ||
Enable mod_headers with | Enable mod_headers with <code>sudo a2enmod headers</code>. | ||
Then you can add headers to your virtualhost: | |||
<pre> | |||
<VirtualHost *:80> | |||
#... | |||
# Prevents caching by search engines (Google) | |||
Header set X-Robots-Tag: noindex | |||
</VirtualHost> | |||
</pre> |