From 25cfa455b745a76c17dbfd87faf6d9b2fc07c9d6 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 13 Feb 2019 19:01:23 -0500 Subject: [PATCH] image-serve: improve vhost config - Add logging options - Disable ServerSignature - Allow X-Forwarded-Proto for https Change-Id: I206e1417702b47b2e1dab3ec7ae211b5a2501f61 --- roles/tripleo-image-serve/templates/image-serve.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/tripleo-image-serve/templates/image-serve.conf.j2 b/roles/tripleo-image-serve/templates/image-serve.conf.j2 index d010dc8ab..39f2039ca 100644 --- a/roles/tripleo-image-serve/templates/image-serve.conf.j2 +++ b/roles/tripleo-image-serve/templates/image-serve.conf.j2 @@ -1,6 +1,10 @@ Listen {{ container_registry_port }} DocumentRoot {{ image_data_dir }} + ErrorLog "/var/log/httpd/image_serve_error.log" + ServerSignature Off + CustomLog "/var/log/httpd/image_serve_access.log" combined + SetEnvIf X-Forwarded-Proto https HTTPS=1 # This assumes a file exists containing {} at