email: apache: X-Robots-Tag header, full URL match

This commit is contained in:
fliu 2021-07-29 20:55:55 +00:00 committed by Sunil Mohan Adapa
parent c31a896e81
commit 355cc84a1b
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,9 @@
<Location ~ "/rspamd$">
<LocationMatch "^/rspamd$">
Redirect "/rspamd/"
</Location>
Include includes/freedombox-robots.conf
</LocationMatch>
<Location ~ "/rspamd/">
<Location "/rspamd/">
ProxyPass http://127.0.0.1:11334/
ProxyPassReverse http://127.0.0.1:11334/
# Modify proxy headers
@ -15,6 +16,8 @@
RequestHeader unset X-Forwarded-Server
RequestHeader unset X-Real-IP
RequestHeader set X-Forwarded-For "127.0.0.1"
# Modify response headers
Header unset Set-Cookie
# Require SSO
Include includes/freedombox-single-sign-on.conf
<IfModule mod_auth_pubtkt.c>

View File

@ -0,0 +1 @@
Header merge X-Robots-Tag "noindex, nofollow, noarchive, notranslate"