Skip to content
Snippets Groups Projects
Commit 9986797c authored by ale's avatar ale
Browse files

Fix the SecAuditLog default directive

parent 2976d0ed
No related branches found
No related tags found
1 merge request!287Build on apache2-php-base:bookworm and php 8.2
Pipeline #57641 passed
......@@ -78,7 +78,14 @@ a2ensite ${APACHE_SITES}
# The file is named 00modsecurity.conf so it is loaded first.
mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/00modsecurity.conf
# Patch the /etc/modsecurity/00modsecurity.conf file shipped
# with the packages because it fails with a SyntaxError as
# soon as it sees the first SecAuditLog directive.
sed -e 's,^SecAuditLog .*$,SecAuditLog /dev/null,' -i \
/etc/modsecurity/00modsecurity.conf
# This needs to be writable for mod security to be able to start.
# Useless because the float container is read-only anyway.
install -d -m 1777 /var/log/apache2
# Ensure that the mount points exist.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment