rejetto forum

nginx 413 Request Entity Too Large

Win_7 · 3 · 4586

0 Members and 1 Guest are viewing this topic.

Offline Win_7

  • Occasional poster
  • *
    • Posts: 19
    • View Profile
Hello im using a template i found of nginx that passes traffic to hfs server and adds ssl cert but seems like the max data that can be in a request or post is extremely limited leading to the https version of my site being almost completely unusable how can i fix this?


#user  nobody;
worker_processes  1;

events {
    worker_connections  1024;

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    # HTTPS server
    server {
        listen       443 ssl;
        server_name  localhost;

        ssl_certificate      cert.pem;
        ssl_certificate_key  cert.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
         proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;


Offline Win_7

  • Occasional poster
  • *
    • Posts: 19
    • View Profile
and this post is hfs related as the server thats being accessed is hfs where im trying to get https for

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13517
    • View Profile
this is a problem with nginx configuration (nothing really to do with hfs).
i'm no nginx expert but in the past i've already met and fixed this problem, but I can't remember, so: