How to force apache to send content length for Docker

JFrog Support
2016-10-06 13:35

   Since Docker clients under 1.8 do not send content-length header it causes Docker push to fail with Artifactory 4.x  + Docker < 1.8

Here is a way to resolve this issue while using  Apache server.


    SetEnv                  proxy-sendcl 1

    ProxyRequests           off

    ProxyPreserveHost       on

    ProxyPass               / http://localhost:8081/artifactory/api/docker/docker-dbc/

    ProxyPassReverse        / http://localhost:8081/artifactory/api/docker/docker-dbc/