Azurel
Silver Pleskian
Bug in nginx: 413 Request Entity Too Large
Plesk 11.5.30
I want upload with plupload a 1.53MB image and get back a error:
Google says that I must set
So I go to plesk "Web Server Settings for ..." and set for nginx input this line:
And get red colored error text:
This domain have _not_ vhost_nginx.conf before. Its with this error message new created and empty.
What can I do?
EDIT: Email says
In /etc/nginx/nginx.conf the string "client_max_body_size" not exists. But in Include its present for "SERVER" as value "128m". But not for "HTTP". Is this a bug?
EDIT: Found Bugreport for plesk here: http://wiki.1awww.com/wiki/413_Request_Entity_Too_Large (german)
Plesk 11.5.30
I want upload with plupload a 1.53MB image and get back a error:
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
Google says that I must set
http {
# some directives
client_max_body_size 20M;
# some more directives
}
So I go to plesk "Web Server Settings for ..." and set for nginx input this line:
client_max_body_size 20M;
And get red colored error text:
Invalid nginx configuration: nginx: [emerg] "client_max_body_size" directive is duplicate in /var/www/vhosts/system/domain.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
This domain have _not_ vhost_nginx.conf before. Its with this error message new created and empty.
What can I do?
EDIT: Email says
Template_Exception: nginx: [emerg] "client_max_body_size" directive is duplicate in /var/www/vhosts/system/domain.com/conf/vhost_nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
In /etc/nginx/nginx.conf the string "client_max_body_size" not exists. But in Include its present for "SERVER" as value "128m". But not for "HTTP". Is this a bug?
EDIT: Found Bugreport for plesk here: http://wiki.1awww.com/wiki/413_Request_Entity_Too_Large (german)
Last edited: