Subscribe

How to install sw-nginx-module-internal-redirect in CentOS/RHEL 8 (x86_64)

Internal redirect to a specified URI

License: BSD-2-Clause Vendor: GetPageSpeed LLC https://github.com/GetPageSpeed/ngx_http_internal_redirect_module
Important: The Plesk control panel must be installed on your server before using this repository.

Install

# The Plesk control panel must be installed on your server.
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --enable getpagespeed-extras-plesk
sudo dnf -y install sw-nginx-module-internal-redirect

Description

The internal redirect module makes an internal redirect to the URI specified. Unlike external redirects, internal redirects happen within NGINX without sending a redirect response to the client. This is useful for complex routing scenarios where you need to reprocess requests. After installation, enable this module by running: plesk sbin nginx_modules_ctl --enable internal-redirect

RPMs