Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
9986797c
Commit
9986797c
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix the SecAuditLog default directive
parent
2976d0ed
No related branches found
Branches containing commit
No related tags found
1 merge request
!287
Build on apache2-php-base:bookworm and php 8.2
Pipeline
#57641
passed
1 year ago
Stage: build
Stage: container-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/build.sh
+7
-0
7 additions, 0 deletions
docker/build.sh
with
7 additions
and
0 deletions
docker/build.sh
+
7
−
0
View file @
9986797c
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment