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 preinstalled in the utilized operating system, disable it.
  2. If a proxy server is used for Internet access of the server designated for Kaspersky Web Traffic Security installation, run the following commands depending on the operating system used and the user authentication requirements of the proxy server:
    1. If user authentication is not required:
      • for CentOS or Red Hat Enterprise Linux:

        echo "proxy=http://<proxy server name>:8080" >> /etc/yum.conf

      • for Ubuntu or Debian:

        echo 'Acquire::https::Proxy "http://<proxy server name>:8080";' >> /etc/apt/apt.conf

        echo 'Acquire::http::Proxy "http://<proxy server name>:8080";' >> /etc/apt/apt.conf

      • for SUSE Linux Enterprise Server, in the /etc/sysconfig/proxy file, specify the following lines:

        HTTP_PROXY="http://<proxy server name>:8080"

        HTTPS_PROXY="http://<proxy server name>:8080"

        RPOXY_ENABLED="yes"

        Run the reboot command.

    2. If user authentication is required:
      • for CentOS or Red Hat Enterprise Linux:

        echo "proxy=http://<user name>:<password>@<proxy server name>:8080" >> /etc/yum.conf

      • for Ubuntu or Debian:

        echo 'Acquire::http::Proxy "http://<user name>:<password>@<proxy server name>:8080";' >> /etc/apt/apt.conf

        echo 'Acquire::https::Proxy "http://<user name>:<password>@<proxy server name>:8080";' >> /etc/apt/apt.conf

      • for SUSE Linux Enterprise Server, in the /etc/sysconfig/proxy file, specify the following lines:

        HTTP_PROXY="http://<user name>:<password>@<proxy server name>:8080"

        HTTPS_PROXY="http://<user name>:<password>@<proxy server name>:8080"

        RPOXY_ENABLED="yes"

        Run the reboot command.

  3. If you are using CentOS, Red Hat Enterprise Linux, or SUSE Linux Enterprise Server, enable repository support to install the nginx service. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS:

      yum install -y epel-release

    • Red Hat Enterprise Linux:

      echo '[nginx]

      name=nginx repo

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

      gpgcheck=0

      enabled=1' > /etc/yum.repos.d/nginx.repo

    • SUSE Linux Enterprise Server:

      zypper addrepo -G -t yum -c 'http://nginx.org/packages/sles/12' nginx

  4. 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 or Debian:

      apt-get install nginx

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

    systemctl enable nginx

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

    service nginx start

  7. 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