- Server operating system version
- Ubuntu 18.04.6 LTS
- Plesk version and microupdate number
- Plesk Obsidian 18.0.52 (upgrade #3)
I need to change the "inactive" parameter in a line similar to: proxy_cache_path /data/nginx/cache keys_zone=my_zone:10m inactive=5m;
Plesk does not accept this as "Additional nginx directives" with the error "[emerg] "proxy_cache_path" directive is not allowed here ".
Checking the domain file configuration I see something like:
So, I can't change at the "Additional nginx directives" neither the domain file and the directive "inactive" does not exist.
Also I have created a new file in /etc/nginx/conf.d with the configuration, but the command sudo nginx -t fails because there is already a "proxy_cache_path" defined at this domain file.
Anyone knows where "proxy_cache_path" can be changed? (or any other NGINX configuration, if not possible on the Plesk "Additional nginx directives")
Thank you.
Plesk does not accept this as "Additional nginx directives" with the error "[emerg] "proxy_cache_path" directive is not allowed here ".
Checking the domain file configuration I see something like:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
proxy_cache_path /var/cache/nginx/domain.com_proxy levels=1:2 keys_zone=domain.com_proxy:5m max_size=134217728;
fastcgi_cache_path /var/cache/nginx/domain.com_fastcgi levels=1:2 keys_zone=domain.com_fastcgi:5m max_size=134217728;
So, I can't change at the "Additional nginx directives" neither the domain file and the directive "inactive" does not exist.
Also I have created a new file in /etc/nginx/conf.d with the configuration, but the command sudo nginx -t fails because there is already a "proxy_cache_path" defined at this domain file.
Anyone knows where "proxy_cache_path" can be changed? (or any other NGINX configuration, if not possible on the Plesk "Additional nginx directives")
Thank you.