mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
email: apache: X-Robots-Tag header, full URL match
This commit is contained in:
parent
c31a896e81
commit
355cc84a1b
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user