diff --git a/data/etc/apache2/conf-available/searx-freedombox.conf b/data/etc/apache2/conf-available/searx-freedombox.conf index c58656a45..2efe558f6 100644 --- a/data/etc/apache2/conf-available/searx-freedombox.conf +++ b/data/etc/apache2/conf-available/searx-freedombox.conf @@ -1,14 +1,5 @@ -# This exclusion rule is to allow Searx to be added as a search engine in Firefox. - - Satisfy Any - Allow from all - AuthType None - ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ - - - # Redirect /searx to /searx/ - + RewriteEngine On RewriteCond %{REQUEST_URI} ^/searx$ @@ -26,3 +17,10 @@ ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ + + +# This exclusion rule is to allow Searx to be added as a search engine in Firefox. + + Require all granted + ProxyPassMatch "unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/$1" +