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
| Name | Type | Description |
|---|---|---|
| path | off | path expression | regex | Choose inherited-rule cancellation or a Path match. |
| replacement | path expression | Required for matching form; review cookie scope. |
Working Example
Example Snippetnginx
proxy_cookie_path / /shop/;