2

I work on a node.js application that permits its users to upload large files.

  • When I run it on 8080 or 3000 or whatever, its okay.
  • But when I access it on 80 behind apache2 with mod_proxy configured as reverse proxy, I get this error on upload (files > 1MB)

413 Request Entity Too Large

I tryed to add this directive to apache config :

LimitRequestBody 0

But it doesn't change this behavior. I don't know where to search the right conf.

1 Answer 1

1

Solved.

It seems Apache reverse Proxy works with mod_proxy but it also needs mod_proxy_http.

In my case all the application works fine with only the fisrt apart uploading files > 1MB.

I found references to mod_proxy_http and enabled it :

# a2enmod proxy_http
# apache2 restart

Now it seems work. I trying to upload larger and larger files to the server to test it. The last was 160MB and uploaded fine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.