From 7a4e5f3723e134586d093ee9bad4f50b198aa84e Mon Sep 17 00:00:00 2001 From: Alex Elman Date: Mon, 4 May 2015 15:09:58 -0500 Subject: [PATCH] Updating the Request Header directive for compatibility with httpd 2.2 Signed-off-by: Alex Elman --- contrib/apache/apache.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/apache/apache.conf b/contrib/apache/apache.conf index b7581fd1..3300a7c0 100644 --- a/contrib/apache/apache.conf +++ b/contrib/apache/apache.conf @@ -44,8 +44,8 @@ ErrorLog ${APACHE_LOG_DIR}/registry_error_ssl_log CustomLog ${APACHE_LOG_DIR}/registry_access_ssl_log combined env=!dontlog - Header set Host "registry.example.com" - Header set "Docker-Distribution-Api-Version" "registry/2.0" + Header always set "Docker-Distribution-Api-Version" "registry/2.0" + Header onsuccess set "Docker-Distribution-Api-Version" "registry/2.0" RequestHeader set X-Forwarded-Proto "https" ProxyRequests off