uwsgi_store_access

The `uwsgi_store_access` directive configures access control for responses cached on the server-side for uWSGI applications.

Syntaxuwsgi_store_access allow | deny address;
Defaultnone
Contexthttp, server, location
Arguments1-3

Description

The uwsgi_store_access directive in NGINX is primarily used to control the accessibility of cached responses when working with uWSGI applications. This directive allows administrators to define which client IP addresses are permitted or denied access to stored responses on the server. By specifying a list of allowed or denied directives, users can fine-tune the level of access control for the cached content, thereby enhancing security and management of responses.

Config Example

location /app {
    uwsgi_pass unix:/tmp/app.sock;
    uwsgi_store on;
    uwsgi_store_access allow 192.168.1.0/24;
}

Ensure that the IP addresses specified are correctly formatted and reachable to prevent unexpected access issues.

Using broad address ranges could inadvertently expose sensitive cached data to unauthorized clients.

← Back to all directives