node.js - NodeJS application behind APache2 reverse proxy get error "413 Request Entity Too Large" on upload files -


i work on node.js application permits users upload large files.

  • when run on 8080 or 3000 or whatever, okay.
  • but when access on 80 behind apache2 mod_proxy configured reverse proxy, error on upload (files > 1mb)

413 request entity large

i tryed add directive apache config :

limitrequestbody 0 

but doesn't change behavior. don't know search right conf.

solved.

it seems apache reverse proxy works mod_proxy needs mod_proxy_http.

in case application works fine fisrt apart uploading files > 1mb.

i found references mod_proxy_http , enabled :

# a2enmod proxy_http # apache2 restart 

now seems work. trying upload larger , larger files server test it. last 160mb , uploaded fine.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -