HTTP directives

absolute_redirect directive (HTTP)

HTTP, server or location context; default on. Since 1.11.8. Controls absolute URL construction for Nginx-generated local redirects.

Formal Syntax & Structure

nginx syntaxnginx
absolute_redirect on | off;

Parameters & Attributes

NameTypeDescription
settingstringon or off

Working Example

Example Snippetnginx
absolute_redirect off;
Nginx Reference