Username: Peter Debik
TITLE
Nginx Caching size can be set to zero, which causes a web server configuration error
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian, latest MU
CentOS 7.9
PROBLEM DESCRIPTION
It is possible to set the Nginx cache size to zero. However, that value is considered an invalid entry into the max_size configuration parameter of Nginx. As subscribers can manage this setting by themselves, they can cause issues to the system in general by setting a false value.
STEPS TO REPRODUCE
Set the cache size to zero.
ACTUAL RESULT
Webserver configuration error (e.g. in web server configurations trouble shooter)
EXPECTED RESULT
a) Zero must not be allowed as a parameter.
or
b) When set to zero, the cache should be disabled.
ANY ADDITIONAL INFORMATION
First seen in
and confirmed issue in our own servers.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Nginx Caching size can be set to zero, which causes a web server configuration error
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian, latest MU
CentOS 7.9
PROBLEM DESCRIPTION
It is possible to set the Nginx cache size to zero. However, that value is considered an invalid entry into the max_size configuration parameter of Nginx. As subscribers can manage this setting by themselves, they can cause issues to the system in general by setting a false value.
STEPS TO REPRODUCE
Set the cache size to zero.
ACTUAL RESULT
Webserver configuration error (e.g. in web server configurations trouble shooter)
EXPECTED RESULT
a) Zero must not be allowed as a parameter.
or
b) When set to zero, the cache should be disabled.
ANY ADDITIONAL INFORMATION
First seen in
Resolved - Template_Exception: nginx: [emerg] invalid max_size value "max_size=" in /etc/nginx/plesk.conf.d
How can this error be fixed? Details: [2020-10-11 22:53:33.670] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2020-10-11 22:53:41.610] ERR [panel] Apache config (16024495840.16543000) generation failed: Template_Exception: nginx: [emerg]...
talk.plesk.com
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug