mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Added more detailed searxng.conf
This commit is contained in:
parent
bd5d1c00a0
commit
7f069623d3
1 changed files with 32 additions and 14 deletions
|
@ -353,25 +353,43 @@ all`` directive and replace ``192.168.0.0/16`` with your subnet IP/class.
|
||||||
|
|
||||||
.. code:: apache
|
.. code:: apache
|
||||||
|
|
||||||
LoadModule headers_module /usr/lib/apache2/mod_headers.so
|
<VirtualHost *:80>
|
||||||
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
|
ServerName your_domain
|
||||||
LoadModule proxy_uwsgi_module /usr/lib/apache2/modules/mod_proxy_uwsgi.so
|
Redirect / your_https_url
|
||||||
|
|
||||||
# SetEnvIf Request_URI /searx dontlog
|
RewriteEngine on
|
||||||
# CustomLog /dev/null combined env=dontlog
|
RewriteCond %{SERVER_NAME} = your_domain
|
||||||
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||||
|
|
||||||
<Location /searx>
|
</VirtualHost>
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
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
|
# SetEnvIf Request_URI /searx dontlog
|
||||||
Order deny,allow
|
# CustomLog /dev/null combined env=dontlog
|
||||||
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
|
<Location /searx>
|
||||||
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/
|
||||||
|
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
SSLCertificateFile path_to_cert_file
|
||||||
|
SSLCertificateKeyFile path_to_cert_key
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
</Location>
|
|
||||||
|
|
||||||
.. group-tab:: Arch Linux
|
.. group-tab:: Arch Linux
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue