From 273a066d070bd8495f7c91f551140854218c4b24 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 20 Sep 2018 08:44:14 +0000 Subject: [PATCH] redirecting of httpd logs to console --- grouper-midpoint/mp-gr/midpoint-server/Dockerfile | 6 +++--- .../midpoint-server/container_files/httpd/conf/ssl.conf | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 grouper-midpoint/mp-gr/midpoint-server/container_files/httpd/conf/ssl.conf diff --git a/grouper-midpoint/mp-gr/midpoint-server/Dockerfile b/grouper-midpoint/mp-gr/midpoint-server/Dockerfile index 21f0451..3f1c43e 100644 --- a/grouper-midpoint/mp-gr/midpoint-server/Dockerfile +++ b/grouper-midpoint/mp-gr/midpoint-server/Dockerfile @@ -14,7 +14,7 @@ RUN yum -y install zulu-8 RUN yum -y install supervisor COPY container_files/supervisor/supervisord.conf /etc/supervisord.conf -RUN rm /etc/shibboleth/sp-key.pem /etc/shibboleth/sp-cert.pem +RUN rm /etc/shibboleth/sp-key.pem /etc/shibboleth/sp-cert.pem /etc/httpd/conf.d/ssl.conf COPY container_files/httpd/conf/* /etc/httpd/conf.d/ COPY container_files/httpd/possible-conf/* /etc/httpd/possible-conf/ @@ -24,8 +24,8 @@ COPY container_files/usr-local-bin/ /usr/local/bin/ RUN cp /dev/null /etc/httpd/conf.d/ssl.conf \ && sed -i 's/LogFormat "/LogFormat "httpd;access_log;%{ENV}e;%{USERTOKEN}e;/g' /etc/httpd/conf/httpd.conf \ && echo -e "\nErrorLogFormat \"httpd;error_log;%{ENV}e;%{USERTOKEN}e;[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i\"" >> /etc/httpd/conf/httpd.conf \ - && sed -i 's/CustomLog "logs\/access_log"/CustomLog "\/tmp\/logpipe"/g' /etc/httpd/conf/httpd.conf \ - && sed -i 's/ErrorLog "logs\/error_log"/ErrorLog "\/tmp\/logpipe"/g' /etc/httpd/conf/httpd.conf \ + && sed -i 's/CustomLog "logs\/access_log"/CustomLog "\/dev\/fd\/1"/g' /etc/httpd/conf/httpd.conf \ + && sed -i 's/ErrorLog "logs\/error_log"/ErrorLog "\/dev\/fd\/1"/g' /etc/httpd/conf/httpd.conf \ && echo -e "\nPassEnv ENV" >> /etc/httpd/conf/httpd.conf \ && echo -e "\nPassEnv USERTOKEN" >> /etc/httpd/conf/httpd.conf diff --git a/grouper-midpoint/mp-gr/midpoint-server/container_files/httpd/conf/ssl.conf b/grouper-midpoint/mp-gr/midpoint-server/container_files/httpd/conf/ssl.conf new file mode 100644 index 0000000..ccc067c --- /dev/null +++ b/grouper-midpoint/mp-gr/midpoint-server/container_files/httpd/conf/ssl.conf @@ -0,0 +1,6 @@ +SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog +SSLSessionCache shmcb:/run/httpd/sslcache(512000) +SSLSessionCacheTimeout 300 +SSLRandomSeed startup file:/dev/urandom 256 +SSLRandomSeed connect builtin +SSLCryptoDevice builtin