413 request entity too large + The web server connection was closed | Error 64

I'm currently hosting a django project on Apache + nginx. When I try to upload a large file I get a 413 request entity too large error message.

I also have a django-cms project and when I tried to upload a file which is anything over 5meg I get an error code 64, The web server connection was closed.

Thanks in advance,

Answers


Your error message tells it comes from nginx configuration.

You need to increase client_max_body_size on your nginx.conf server config. eg :

http {
    server {
        client_max_body_size 20M;
        listen       80;
        server_name  test.com;
    }
}

Need Your Help

Run single kotlin class with main function in android studio

android android-studio kotlin main

I am trying to get familiar with Kotlin to use in my android apps. So first I want to try out some simple kotlin examples, just to get familiar with syntax of kotlin.

Syntax highlighting for Jade in Sublime Text 2?

editor sublimetext2 pug syntax-highlighting sublimetext

I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2.