HTTP directives

proxy_cookie_path directive (HTTP)

Contexts: http, server, location. Default: off. Available since 1.1.15. Changes a matching Path attribute in upstream Set-Cookie.

Formal Syntax & Structure

nginx syntaxnginx
proxy_cookie_path off | path replacement;

Parameters & Attributes

NameTypeDescription
pathoff | path expression | regexChoose inherited-rule cancellation or a Path match.
replacementpath expressionRequired for matching form; review cookie scope.

Working Example

Example Snippetnginx
proxy_cookie_path / /shop/;
Nginx Reference