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
| Name | Type | Description |
|---|---|---|
| setting | string | on or off |
Working Example
Example Snippetnginx
absolute_redirect off;