mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
searx: Update outdated Apache configuration
- Avoid Satisfy and Allow which are deprecated. - Make sure the redirection rule applies only to the URL intended. - Fix issue with Proxy matching of URLs. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
6afbd0d9fc
commit
5076488c7f
@ -1,14 +1,5 @@
|
|||||||
# This exclusion rule is to allow Searx to be added as a search engine in Firefox.
|
|
||||||
<LocationMatch "^/searx/(opensearch.xml|static/themes/oscar/img/favicon.png)$">
|
|
||||||
Satisfy Any
|
|
||||||
Allow from all
|
|
||||||
AuthType None
|
|
||||||
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
|
||||||
</LocationMatch>
|
|
||||||
|
|
||||||
|
|
||||||
# Redirect /searx to /searx/
|
# Redirect /searx to /searx/
|
||||||
<Location /searx>
|
<Location ~ ^/searx$>
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_URI} ^/searx$
|
RewriteCond %{REQUEST_URI} ^/searx$
|
||||||
@ -26,3 +17,10 @@
|
|||||||
|
|
||||||
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
||||||
|
# This exclusion rule is to allow Searx to be added as a search engine in Firefox.
|
||||||
|
<LocationMatch "^/searx/(opensearch.xml|static/themes/oscar/img/favicon.png)$">
|
||||||
|
Require all granted
|
||||||
|
ProxyPassMatch "unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/$1"
|
||||||
|
</LocationMatch>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user