searx.conf:filtron 844 B

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