/etc/nginx/sites-enabled в RedHat подобных /etc/nginx/conf.d и т. д. Ни что не мешает тебе самому переименовать директории с конфигами и расположить их где угодно.location /storage/ {
            limit_req zone=static burst=100 nodelay;
            proxy_pass http://домен.рф/media/;
            proxy_redirect off;
            expires 14d;
            proxy_cache staticcache_storage;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
            proxy_cache_valid 200 301 302 120m;
            proxy_cache_use_stale error timeout invalid_header http_500 http_502 http_503 http_504;
            proxy_cache_revalidate on;
        }location /static/ {
  access_log off;
  expires 30d;
  root /path/to/dir;
  try_files $uri @zipped;
}
location @zipped {
  rewrite ^/static/(.*)\.(doc|docx|xls|xlsx)$ /static/$1.zip redirect;
}curl -IL https://example.com/static/test.doc
HTTP/2 302 
server: nginx
content-type: text/html
content-length: 138
location: https://example.com/static/test.zip
HTTP/2 200 
server: nginx
content-type: application/zip
content-length: 29
expires: Thu, 15 Dec 2022 18:31:20 GMT
accept-ranges: bytes// твои данные тут
$input = json_decode(file_get_contents("php://input"), true);location / {
        proxy_pass http://server/;
        proxy_intercept_errors on;
        proxy_redirect off;
        error_page 502 /502.html;
}
location /502.html {
      root /path/to/directory/with/error/pages;
}location / {
        proxy_pass http://localhost:8081;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }