Added by rbarlow over 5 years ago
Reconfigure the httpd vhost to better suit the Docker client.
This commit fixes a few issues with the httpd configuration for Docker v2:
Docker is written in Go and thus it suffers from this bug:
This commit removes most SSL directives from the httpd configuration because they were causing httpd to want to renegotiate with the client (causing the issue), and they were unnecessary to begin with. The SSL options in the config did not make much sense. They did things like exporting the client certificate into the environment, when this config only serves flat files. It also had strange client certificate settings when client certificates are not required for these views.
The default httpd configuration in Fedora uses mod_mime_magic, which adds content-type and content-encoding headers to the responses. These headers confuse the Docker client, so this commit configures httpd not to do that for these paths.
The Docker client expects to see the Docker-Distribution-API-Version set to registry/2.0 on all requests.