searx.conf:filtron 817 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- coding: utf-8; mode: apache -*-
  2. ProxyPreserveHost On
  3. # SecRuleRemoveById 981054
  4. # SecRuleRemoveById 981059
  5. # SecRuleRemoveById 981060
  6. <Location ${FILTRON_URL_PATH} >
  7. <IfModule mod_security2.c>
  8. SecRuleEngine Off
  9. </IfModule>
  10. Require all granted
  11. Order deny,allow
  12. Deny from all
  13. #Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1
  14. Allow from all
  15. ProxyPass http://${FILTRON_LISTEN}
  16. RequestHeader set X-Script-Name ${FILTRON_URL_PATH}
  17. # In Apache it seems, that setting HTTP_HOST header direct here does have no
  18. # effect. I needed to set 'ProxyPreserveHost On' (see above). HTTP_HOST is
  19. # needed by searx to render correct *Search URL* in the *Link* box and
  20. # *saved preference*.
  21. # RequestHeader set Host ${PUBLIC_HOST}
  22. </Location>