Uploading of big file size fails with the following error in
- [error] 6045#0: *1543600 client intended to send too large body: 163625628 bytes, client: 203.0.113.2, server: example.com, request: "POST /attachments/uploading.json?hash=bb192e03d44f11110881f1c148ef629&content_type=resource_version&key=resource HTTP/1.1", host: "203.0.113.2", referrer: "https://203.0.113.2/resources/add?resource_category_id=13"
Nginx support is enabled on the server:
/etc/nginx/nginx.conf has no effect
client_max_body_size directive is overwritten on domain level and is insufficient.
Connect to the server via SSH.
Add the following directives to
/usr/local/psa/admin/conf/panel.inifile using 'vi' utility to customize Plesk defaults:
If there is no
/usr/local/psa/admin/conf/panel.inifile, create it from the sample file:
Rebuild web server configuration files:
Warning: Execution of the command above could cause a significant downtime of the hosted websites if there are a big number of them. Perform such action during the maintenance timeframe
Adjust settings of PHP handler assigned to the domain. Log in to Plesk, go to Tools & Settings > PHP Settings > X.X.XX FPM application in php.ini tab and adjust the following parameters, e.g.: