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

This commit is contained in:
fliu authored and Sunil Mohan Adapa committed 2021-08-17 19:43:46 -07:00
1 parent c31a896e81
commit 355cc84a1b
2 files changed
+7 -3

No files matched your search

@@ -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>
@@ -0,0 +1 @@
Header merge X-Robots-Tag "noindex, nofollow, noarchive, notranslate"