diff --git a/templates/miq-template-ext-db.yaml b/templates/miq-template-ext-db.yaml index 59127fbb0..b55f9e61c 100644 --- a/templates/miq-template-ext-db.yaml +++ b/templates/miq-template-ext-db.yaml @@ -456,6 +456,10 @@ objects: RewriteCond %{REQUEST_URI} !^/saml2 RewriteRule ^/ http://${NAME}%{REQUEST_URI} [P,QSA,L] ProxyPassReverse / http://${NAME}/ + + # Ensures httpd stdout/stderr are seen by docker logs. + ErrorLog "| /usr/bin/tee /proc/1/fd/2 /var/log/httpd/error_log" + CustomLog "| /usr/bin/tee /proc/1/fd/1 /var/log/httpd/access_log" common authentication.conf: | # Load appropriate authentication configuration files diff --git a/templates/miq-template.yaml b/templates/miq-template.yaml index aa88c6cce..b17a7d2a5 100644 --- a/templates/miq-template.yaml +++ b/templates/miq-template.yaml @@ -146,6 +146,10 @@ objects: RewriteCond %{REQUEST_URI} !^/saml2 RewriteRule ^/ http://${NAME}%{REQUEST_URI} [P,QSA,L] ProxyPassReverse / http://${NAME}/ + + # Ensures httpd stdout/stderr are seen by docker logs. + ErrorLog "| /usr/bin/tee /proc/1/fd/2 /var/log/httpd/error_log" + CustomLog "| /usr/bin/tee /proc/1/fd/1 /var/log/httpd/access_log" common authentication.conf: | # Load appropriate authentication configuration files