Verified Commit 5d307670 authored by tr's avatar tr
Browse files

Log to /var/log/modsecurity

parent b16fa232
Pipeline #5378 passed with stages
in 18 minutes and 39 seconds
......@@ -90,7 +90,7 @@ RUN curl -L https://github.com/coreruleset/coreruleset/archive/v$CORERULESET.tar
mv /etc/modsecurity/coreruleset-$CORERULESET /etc/modsecurity/coreruleset && \
mv /etc/modsecurity/coreruleset/crs-setup.conf.example /etc/modsecurity/coreruleset/crs-setup.conf
RUN mkdir -p /var/log/nginx && \
RUN mkdir -p /var/log/{nginx,modsecurity} && \
mkdir -p /etc/modsecurity/rules && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
......
......@@ -209,7 +209,7 @@ SecDataDir /tmp/
# The default debug log configuration is to duplicate the error, warning
# and notice messages from the error log.
#
#SecDebugLog /opt/modsecurity/var/log/debug.log
#SecDebugLog /var/log/modsecurity/debug.log
#SecDebugLogLevel 3
......@@ -229,10 +229,10 @@ SecAuditLogParts ABIJDEFHZ
# assumes that you will use the audit log only ocassionally.
#
SecAuditLogType Serial
SecAuditLog /var/log/nginx/modsec_audit.log
SecAuditLog /var/log/modsecurity/modsec_audit.log
# Specify the path for concurrent audit logging.
#SecAuditLogStorageDir /opt/modsecurity/var/audit/
#SecAuditLogStorageDir /var/log/modsecurity/
# -- Miscellaneous -----------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment