morty.conf 743 B

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