In Progress ZC-10966 - how to add use_temp_path=off to proxy_cache_path in NGINX with Reverse Proxy

lazdeva

Member
Jun 1, 2023
8
1
3
Coral Springs
cPanel Access Level
Website Owner
Added "use_temp_path" : "off", to /etc/nginx/ea-nginx/cache.json ran /scripts/ea-nginx conf --all as per the instructions, but "use_temp_path" : "off" doesnt get added in: /etc/nginx/conf.d/users/myusername.conf

Cpanel allows for like for example: "inactive_time" : "3600m" and "zone_size" : "1000m" in /etc/nginx/ea-nginx/cache.json , but it doesn't recognize "use_temp_path" : "off"

Cpanel does not allow to add proxy_cache_path (where "use_temp_path" : "off" is included) in a custom domain conf file like /etc/nginx/conf.d/users/myusername/mywebsite.com/website.conf I get error when trying this option that says proxy_cache_path is not allowed in the custom doaminconf file

So in which file or how to make Cpanel to add "use_temp_path" : "off" to proxy_cache_path in the username conf file

I want to add use_temp_path=off as recommended here: A Guide to Caching with NGINX and NGINX Plus - NGINX

Thanks,
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! I reached out to the developers and it turns out this isn't an option we properly detect in the configuration. I've created case ZC-10966 and our webserver team is looking into this now, but at this point there won't be a way to properly use that configuration option.