Skip to content

Commit

Permalink
Merge pull request #244 from abellotti/httpd_stdout_stderr
Browse files Browse the repository at this point in the history
Ensures httpd error_log and access_log are seen by docker or oc logs commands
(cherry picked from commit b80cb34)
  • Loading branch information
bdunne authored and simaishi committed Jan 15, 2018
1 parent 92f7d48 commit 363ff05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/miq-template-ext-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
</VirtualHost>
authentication.conf: |
# Load appropriate authentication configuration files
Expand Down
4 changes: 4 additions & 0 deletions templates/miq-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
</VirtualHost>
authentication.conf: |
# Load appropriate authentication configuration files
Expand Down

0 comments on commit 363ff05

Please sign in to comment.