2020-02-04 15:42:13 +00:00
|
|
|
.. _installation apache:
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
======
|
|
|
|
Apache
|
|
|
|
======
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
.. _Apache: https://httpd.apache.org/
|
|
|
|
.. _Apache Debian:
|
|
|
|
https://cwiki.apache.org/confluence/display/HTTPD/DistrosDefaultLayout#DistrosDefaultLayout-Debian,Ubuntu(Apachehttpd2.x):
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _apache2.README.Debian:
|
2020-04-06 15:59:06 +00:00
|
|
|
https://salsa.debian.org/apache-team/apache2/raw/master/debian/apache2.README.Debian
|
|
|
|
.. _Apache Arch Linux:
|
|
|
|
https://wiki.archlinux.org/index.php/Apache_HTTP_Server
|
|
|
|
.. _Apache Fedora:
|
|
|
|
https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-apache-http-server/index.html
|
|
|
|
.. _Apache directives:
|
|
|
|
https://httpd.apache.org/docs/trunk/mod/directives.html
|
|
|
|
.. _Getting Started:
|
|
|
|
https://httpd.apache.org/docs/current/en/getting-started.html
|
|
|
|
.. _Terms Used to Describe Directives:
|
|
|
|
https://httpd.apache.org/docs/current/en/mod/directive-dict.html
|
|
|
|
.. _Configuration Files:
|
|
|
|
https://httpd.apache.org/docs/current/en/configuring.html
|
|
|
|
.. _ProxyPreserveHost: https://httpd.apache.org/docs/trunk/mod/mod_proxy.html#proxypreservehost
|
|
|
|
.. _LoadModule:
|
2022-06-14 08:02:50 +00:00
|
|
|
https://httpd.apache.org/docs/mod/mod_so.html#loadmodule
|
|
|
|
.. _IncludeOptional:
|
|
|
|
https://httpd.apache.org/docs/mod/core.html#includeoptional
|
2020-04-06 15:59:06 +00:00
|
|
|
.. _DocumentRoot:
|
|
|
|
https://httpd.apache.org/docs/trunk/mod/core.html#documentroot
|
|
|
|
.. _Location:
|
|
|
|
https://httpd.apache.org/docs/trunk/mod/core.html#location
|
|
|
|
.. _uWSGI Apache support:
|
|
|
|
https://uwsgi-docs.readthedocs.io/en/latest/Apache.html
|
|
|
|
.. _mod_proxy_uwsgi:
|
|
|
|
https://uwsgi-docs.readthedocs.io/en/latest/Apache.html#mod-proxy-uwsgi
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _mod_proxy_http:
|
|
|
|
https://httpd.apache.org/docs/current/mod/mod_proxy_http.html
|
|
|
|
.. _mod_proxy:
|
|
|
|
https://httpd.apache.org/docs/current/mod/mod_proxy.html
|
|
|
|
|
|
|
|
|
2022-06-21 12:48:46 +00:00
|
|
|
This section explains how to set up a SearXNG instance using the HTTP server Apache_.
|
|
|
|
If you did use the :ref:`installation scripts` and do not have any special preferences
|
2022-06-14 08:02:50 +00:00
|
|
|
you can install the :ref:`SearXNG site <apache searxng site>` using
|
|
|
|
:ref:`searxng.sh <searxng.sh overview>`:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
$ sudo -H ./utils/searxng.sh install apache
|
|
|
|
|
|
|
|
If you have special interests or problems with setting up Apache, the following
|
|
|
|
section might give you some guidance.
|
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. sidebar:: further read
|
|
|
|
|
|
|
|
- `Apache Arch Linux`_
|
2022-06-14 08:02:50 +00:00
|
|
|
- `Apache Debian`_
|
|
|
|
- `apache2.README.Debian`_
|
2020-04-06 15:59:06 +00:00
|
|
|
- `Apache Fedora`_
|
|
|
|
- `Apache directives`_
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2023-06-30 16:07:02 +00:00
|
|
|
.. contents::
|
2020-02-04 15:42:13 +00:00
|
|
|
:depth: 2
|
|
|
|
:local:
|
|
|
|
:backlinks: entry
|
|
|
|
|
2020-04-09 13:04:23 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
The Apache HTTP server
|
2020-04-06 15:59:06 +00:00
|
|
|
======================
|
|
|
|
|
|
|
|
If Apache_ is not installed, install it now. If apache_ is new to you, the
|
|
|
|
`Getting Started`_, `Configuration Files`_ and `Terms Used to Describe
|
|
|
|
Directives`_ documentation gives first orientation. There is also a list of
|
|
|
|
`Apache directives`_ *to keep in the pocket*.
|
|
|
|
|
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: Ubuntu / debian
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
sudo -H apt-get install apache2
|
|
|
|
|
|
|
|
.. group-tab:: Arch Linux
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
sudo -H pacman -S apache
|
|
|
|
sudo -H systemctl enable httpd
|
|
|
|
sudo -H systemctl start http
|
|
|
|
|
|
|
|
.. group-tab:: Fedora / RHEL
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
sudo -H dnf install httpd
|
|
|
|
sudo -H systemctl enable httpd
|
|
|
|
sudo -H systemctl start httpd
|
|
|
|
|
2022-06-21 12:48:46 +00:00
|
|
|
Now at http://localhost you should see some kind of *Welcome* or *Test* page.
|
|
|
|
How this default site is configured, depends on the linux distribution
|
2020-04-06 15:59:06 +00:00
|
|
|
(compare `Apache directives`_).
|
|
|
|
|
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: Ubuntu / debian
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
less /etc/apache2/sites-enabled/000-default.conf
|
|
|
|
|
|
|
|
In this file, there is a line setting the `DocumentRoot`_ directive:
|
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
|
|
|
And the *welcome* page is the HTML file at ``/var/www/html/index.html``.
|
|
|
|
|
|
|
|
.. group-tab:: Arch Linux
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
less /etc/httpd/conf/httpd.conf
|
|
|
|
|
|
|
|
In this file, there is a line setting the `DocumentRoot`_ directive:
|
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
|
|
|
DocumentRoot "/srv/http"
|
|
|
|
<Directory "/srv/http">
|
|
|
|
Options Indexes FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
The *welcome* page of Arch Linux is a page showing the directory located
|
|
|
|
at ``DocumentRoot``. This *directory* page is generated by the Module
|
2020-04-06 15:59:06 +00:00
|
|
|
`mod_autoindex <https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html>`_:
|
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
|
|
|
LoadModule autoindex_module modules/mod_autoindex.so
|
|
|
|
...
|
|
|
|
Include conf/extra/httpd-autoindex.conf
|
|
|
|
|
|
|
|
.. group-tab:: Fedora / RHEL
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
less /etc/httpd/conf/httpd.conf
|
|
|
|
|
|
|
|
In this file, there is a line setting the ``DocumentRoot`` directive:
|
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
|
|
|
DocumentRoot "/var/www/html"
|
|
|
|
...
|
|
|
|
<Directory "/var/www">
|
|
|
|
AllowOverride None
|
|
|
|
# Allow open access:
|
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
On fresh installations, the ``/var/www`` is empty and the *default
|
|
|
|
welcome page* is shown, the configuration is located at::
|
|
|
|
|
|
|
|
less /etc/httpd/conf.d/welcome.conf
|
|
|
|
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _Debian's Apache layout:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Debian's Apache layout
|
|
|
|
----------------------
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Be aware, Debian's Apache layout is quite different from the standard Apache
|
|
|
|
configuration. For details look at the apache2.README.Debian_
|
|
|
|
(``/usr/share/doc/apache2/README.Debian.gz``). Some commands you should know on
|
|
|
|
Debian:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
* :man:`apache2ctl`: Apache HTTP server control interface
|
|
|
|
* :man:`a2enmod`, :man:`a2dismod`: switch on/off modules
|
|
|
|
* :man:`a2enconf`, :man:`a2disconf`: switch on/off configurations
|
|
|
|
* :man:`a2ensite`, :man:`a2dissite`: switch on/off sites
|
|
|
|
|
|
|
|
.. _apache modules:
|
|
|
|
|
|
|
|
Apache modules
|
|
|
|
--------------
|
|
|
|
|
|
|
|
To load additional modules, in most distributions you have to un-comment the
|
|
|
|
lines with the corresponding LoadModule_ directive, except in :ref:`Debian's
|
|
|
|
Apache layout`.
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: Ubuntu / debian
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
:ref:`Debian's Apache layout` uses :man:`a2enmod` and :man:`a2dismod` to
|
|
|
|
activate or disable modules:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H a2enmod ssl
|
2020-04-06 15:59:06 +00:00
|
|
|
sudo -H a2enmod headers
|
|
|
|
sudo -H a2enmod proxy
|
|
|
|
sudo -H a2enmod proxy_http
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H a2enmod proxy_uwsgi
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. group-tab:: Arch Linux
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
In the ``/etc/httpd/conf/httpd.conf`` file, activate LoadModule_
|
|
|
|
directives:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
LoadModule ssl_module modules/mod_ssl.so
|
|
|
|
LoadModule headers_module modules/mod_headers.so
|
|
|
|
LoadModule proxy_module modules/mod_proxy.so
|
|
|
|
LoadModule proxy_http_module modules/mod_proxy_http.so
|
|
|
|
LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. group-tab:: Fedora / RHEL
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
In the ``/etc/httpd/conf/httpd.conf`` file, activate LoadModule_
|
|
|
|
directives:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. code:: apache
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
LoadModule ssl_module modules/mod_ssl.so
|
|
|
|
LoadModule headers_module modules/mod_headers.so
|
|
|
|
LoadModule proxy_module modules/mod_proxy.so
|
|
|
|
LoadModule proxy_http_module modules/mod_proxy_http.so
|
|
|
|
LoadModule proxy_uwsgi_module modules/mod_proxy_uwsgi.so
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _apache sites:
|
2021-01-27 08:58:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Apache sites
|
|
|
|
------------
|
2020-02-04 15:42:13 +00:00
|
|
|
|
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: Ubuntu / debian
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
In :ref:`Debian's Apache layout` you create a ``searxng.conf`` with the
|
|
|
|
``<Location /searxng >`` directive and save this file in the *sites
|
|
|
|
available* folder at ``/etc/apache2/sites-available``. To enable the
|
|
|
|
``searxng.conf`` use :man:`a2ensite`:
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H a2ensite searxng.conf
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
.. group-tab:: Arch Linux
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
In the ``/etc/httpd/conf/httpd.conf`` file add a IncludeOptional_
|
|
|
|
directive:
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2020-04-06 15:59:06 +00:00
|
|
|
.. code:: apache
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
IncludeOptional sites-enabled/*.conf
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Create two folders, one for the *available sites* and one for the *enabled sites*:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
mkdir -p /etc/httpd/sites-available
|
|
|
|
mkdir -p /etc/httpd/sites-enabled
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Create configuration at ``/etc/httpd/sites-available`` and place a
|
|
|
|
symlink to ``sites-enabled``:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H ln -s /etc/httpd/sites-available/searxng.conf \
|
|
|
|
/etc/httpd/sites-enabled/searxng.conf
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. group-tab:: Fedora / RHEL
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
In the ``/etc/httpd/conf/httpd.conf`` file add a IncludeOptional_
|
|
|
|
directive:
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: apache
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
IncludeOptional sites-enabled/*.conf
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Create two folders, one for the *available sites* and one for the *enabled sites*:
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
mkdir -p /etc/httpd/sites-available
|
|
|
|
mkdir -p /etc/httpd/sites-enabled
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Create configuration at ``/etc/httpd/sites-available`` and place a
|
|
|
|
symlink to ``sites-enabled``:
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H ln -s /etc/httpd/sites-available/searxng.conf \
|
|
|
|
/etc/httpd/sites-enabled/searxng.conf
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _apache searxng site:
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Apache's SearXNG site
|
|
|
|
=====================
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. _mod_uwsgi: https://uwsgi-docs.readthedocs.io/en/latest/Apache.html#mod-uwsgi
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. sidebar:: uWSGI
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Use mod_proxy_uwsgi_ / don't use the old mod_uwsgi_ anymore.
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
To proxy the incoming requests to the SearXNG instance Apache needs the
|
|
|
|
mod_proxy_ module (:ref:`apache modules`).
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. sidebar:: HTTP headers
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
With ProxyPreserveHost_ the incoming ``Host`` header is passed to the proxied
|
|
|
|
host.
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-21 12:48:46 +00:00
|
|
|
Depending on what your SearXNG installation is listening on, you need a http
|
2022-06-14 08:02:50 +00:00
|
|
|
mod_proxy_http_) or socket (mod_proxy_uwsgi_) communication to upstream.
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-21 12:48:46 +00:00
|
|
|
The :ref:`installation scripts` installs the :ref:`reference setup
|
|
|
|
<use_default_settings.yml>` and a :ref:`uwsgi setup` that listens on a socket by default.
|
2022-06-14 08:02:50 +00:00
|
|
|
You can install and activate your own ``searxng.conf`` like shown in
|
|
|
|
:ref:`apache sites`.
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. tabs::
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. group-tab:: socket
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. kernel-include:: $DOCS_BUILD/includes/searxng.rst
|
|
|
|
:start-after: START apache socket
|
|
|
|
:end-before: END apache socket
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. group-tab:: http
|
2020-04-06 15:59:06 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. kernel-include:: $DOCS_BUILD/includes/searxng.rst
|
|
|
|
:start-after: START apache http
|
|
|
|
:end-before: END apache http
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. _restart apache:
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
Restart service:
|
2020-02-04 15:42:13 +00:00
|
|
|
|
|
|
|
.. tabs::
|
|
|
|
|
|
|
|
.. group-tab:: Ubuntu / debian
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-02-04 15:42:13 +00:00
|
|
|
|
|
|
|
sudo -H systemctl restart apache2
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H service uwsgi restart searxng
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. group-tab:: Arch Linux
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
sudo -H systemctl restart httpd
|
2022-06-14 08:02:50 +00:00
|
|
|
sudo -H systemctl restart uwsgi@searxng
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
.. group-tab:: Fedora / RHEL
|
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: bash
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
sudo -H systemctl restart httpd
|
2021-10-11 19:20:22 +00:00
|
|
|
sudo -H touch /etc/uwsgi.d/searxng.ini
|
2020-04-06 15:59:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
disable logs
|
|
|
|
============
|
|
|
|
|
|
|
|
For better privacy you can disable Apache logs. In the examples above activate
|
2022-06-14 08:02:50 +00:00
|
|
|
one of the lines and `restart apache`_:
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
.. code:: apache
|
2020-02-04 15:42:13 +00:00
|
|
|
|
2022-06-14 08:02:50 +00:00
|
|
|
SetEnvIf Request_URI "/searxng" dontlog
|
|
|
|
# CustomLog /dev/null combined env=dontlog
|
2020-04-07 16:31:51 +00:00
|
|
|
|
2022-06-21 12:48:46 +00:00
|
|
|
The ``CustomLog`` directive disables logs for the entire (virtual) server, use it
|
|
|
|
when the URL of the service does not have a path component (``/searxng``), so when
|
2022-06-14 08:02:50 +00:00
|
|
|
SearXNG is located at root (``/``).
|