Installing the nginx service

If you use a separate proxy server, by default, Kaspersky Web Traffic Security does not encrypt ICAP traffic or authenticate users on your proxy server. The application administrator must independently ensure a secure network connection between your proxy server and Kaspersky Web Traffic Security by using traffic tunneling or iptables.

To install the nginx service:

  1. If the Apache service has been pre-installed in the utilized operating system, uninstall it.
  2. If you are using CentOS version 7.x, Red Hat Enterprise Linux version 7.x, or SUSE Linux Enterprise Server 15 SP1, enable repository support for installing the nginx service. To do so, perform the following actions depending on the utilized operating system:
    • In the CentOS operating system, create a file named /etc/yum/repos.d/nginx.repo with the following contents:

      [nginx-stable]

      name=nginx stable repo

      baseurl=http://nginx.org/packages/centos/$releasever/$basearch/

      gpgkey=https://nginx.org/keys/nginx_signing.key

      gpgcheck=1

      enabled=1

    • In the Red Hat Enterprise Linux operating system, create a file named /etc/yum/repos.d/nginx.repo with the following contents:

      [nginx-stable]

      name=nginx stable repo

      baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/

      gpgkey=https://nginx.org/keys/nginx_signing.key

      gpgcheck=1

      enabled=1

    • In the SUSE Linux Enterprise Server operating system, connect the Server Applications Module. To do so, execute the command:

      SUSEConnect -p sle-module-server-applications/15.1/x86_64

    In the CentOS version 8.x, Red Hat Enterprise Linux version 8.x, Debian, Ubuntu, ALT Server operating systems, connection of additional repositories is not required.

  3. Install the nginx service package. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS or Red Hat Enterprise Linux:

      yum install -y nginx

    • SUSE Linux Enterprise Server:

      zypper install nginx

    • Ubuntu, Debian, or ALT Server:

      apt-get install nginx

  4. Add the nginx service to autostart. To do so, execute the command:

    systemctl enable nginx

  5. Start the nginx service. To do so, execute the command:

    service nginx start

  6. Check the status of the nginx service. To do so, execute the command:

    service nginx status

    The Active parameter must contain the active (running) value.

The nginx service will be installed.

Page top