brainforge
Basic Pleskian
I put values for the following into domain Additional Nginx Directives
client_max_body_size
proxy_read_timeout
I get error messages like these:
Invalid nginx configuration: nginx: [emerg] "proxy_read_timeout" directive is duplicate in ... nginx: configuration file /etc/nginx/nginx.conf test failed
I can stop that duplicate error by creating a custom conf template with those directive lines removed:
/usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php
But is there a better way?
The values come from variables in the template file.
Where are these variables read from?
Changing / Catching them at source and not deleting the lines in the template would most likely be better.
$VAR->domain->physicalHosting->proxySettings['nginxClientMaxBodySize']
$VAR->domain->physicalHosting->scriptTimeout
Ditto all the other $VAR - is there a document of the $VAR properties and where they come from?
client_max_body_size
proxy_read_timeout
I get error messages like these:
Invalid nginx configuration: nginx: [emerg] "proxy_read_timeout" directive is duplicate in ... nginx: configuration file /etc/nginx/nginx.conf test failed
I can stop that duplicate error by creating a custom conf template with those directive lines removed:
/usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php
But is there a better way?
The values come from variables in the template file.
Where are these variables read from?
Changing / Catching them at source and not deleting the lines in the template would most likely be better.
$VAR->domain->physicalHosting->proxySettings['nginxClientMaxBodySize']
$VAR->domain->physicalHosting->scriptTimeout
Ditto all the other $VAR - is there a document of the $VAR properties and where they come from?