Getting ERR_ABORTED 502 (Proxy Error) using apache, node.js express and

Hi there, Im having a problem with proxy on apache, when i run my app and upload several images i get no error but when using bigger files such as .mp4 files (50mb), the first files upload without a problem but then if it’s several files I get: ERR_ABORTED 502 (Proxy Error)

My config file for my domain is:

        DocumentRoot /var/www/

        ProxyPreserveHost On
        ProxyPass /
        Alias /error/ “/var/www/”
        ProxyPass /error/ !
        ErrorDocument 503 /error/503.html
        ProxyPassReverse /

        RewriteEngine On
        RewriteCond %{REQUEST_URI}  ^/            [NC]
        RewriteCond %{QUERY_STRING} transport=websocket    [NC]
        RewriteRule /(.*)           ws://localhost:3002/$1 [P,L]

        <Directory /var/www/>
                Options FollowSymLinks
                AllowOverride all
                Require all granted

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        ErrorDocument 503 /50x.html

        <Files "50x.html">
                <If "-z %{ENV:REDIRECT_STATUS}">
                        RedirectMatch 404 ^/50x.html$

Any ideas or help? Thanks.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!