|
#
|
|
# Apache configuration file for Pulp's Docker support
|
|
#
|
|
|
|
# -- HTTPS Repositories ---------
|
|
|
|
# This prevents mod_mime_magic from adding content-type and content-encoding headers, which will confuse the Docker
|
|
# client.
|
|
MimeMagicFile NEVER_EVER_USE
|
|
|
|
# Docker v2
|
|
Alias /pulp/docker/v2 /var/www/pub/docker/v2/web
|
|
<Directory /var/www/pub/docker/v2/web>
|
|
Header set Docker-Distribution-API-Version "registry/2.0"
|
|
SSLRequireSSL
|
|
Options FollowSymlinks Indexes
|
|
</Directory>
|
|
<Directory /var/www/pub/docker/v2/web/*/manifests/2>
|
|
Header set Docker-Distribution-API-Version "registry/2.0"
|
|
Header set Content-Type "application/vnd.docker.distribution.manifest.v2+json"
|
|
SSLRequireSSL
|
|
Options FollowSymlinks Indexes
|
|
</Directory>
|
|
|
|
# Docker v1
|
|
Alias /pulp/docker/v1 /var/www/pub/docker/v1/web
|
|
<Directory /var/www/pub/docker/v1/web>
|
|
SSLRequireSSL
|
|
Options FollowSymLinks Indexes
|
|
</Directory>
|