From 7f069623d3baa5f5f1c02f724b9bb982ebd8c456 Mon Sep 17 00:00:00 2001 From: Luka Jovanovic Date: Tue, 21 Jun 2022 13:59:50 +0200 Subject: [PATCH] Added more detailed searxng.conf --- docs/admin/installation-apache.rst | 46 +++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/docs/admin/installation-apache.rst b/docs/admin/installation-apache.rst index b60e20ad1..bbb6ae26d 100644 --- a/docs/admin/installation-apache.rst +++ b/docs/admin/installation-apache.rst @@ -353,25 +353,43 @@ all`` directive and replace ``192.168.0.0/16`` with your subnet IP/class. .. code:: apache - LoadModule headers_module /usr/lib/apache2/mod_headers.so - LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so - LoadModule proxy_uwsgi_module /usr/lib/apache2/modules/mod_proxy_uwsgi.so + + ServerName your_domain + Redirect / your_https_url - # SetEnvIf Request_URI /searx dontlog - # CustomLog /dev/null combined env=dontlog + RewriteEngine on + RewriteCond %{SERVER_NAME} = your_domain + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] - + + + + ServerName your_domain + LoadModule headers_module /usr/lib/apache2/mod_headers.so + LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so + LoadModule proxy_uwsgi_module /usr/lib/apache2/modules/mod_proxy_uwsgi.so - Require all granted - Order deny,allow - Deny from all - # Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1 - Allow from all + # SetEnvIf Request_URI /searx dontlog + # CustomLog /dev/null combined env=dontlog - ProxyPreserveHost On - ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ + + + Require all granted + Order deny,allow + Deny from all + # Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1 + Allow from all + + ProxyPreserveHost On + ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/ + + + + SSLCertificateFile path_to_cert_file + SSLCertificateKeyFile path_to_cert_key + + - .. group-tab:: Arch Linux