Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nginx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
nginx
Merge requests
!2
disallow access to dotfiles besides .well-known by default
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
disallow access to dotfiles besides .well-known by default
feature/disallow_dotfiles
into
master
Overview
3
Commits
7
Pipelines
0
Changes
1
Merged
disallow access to dotfiles besides .well-known by default
psy
requested to merge
feature/disallow_dotfiles
into
master
Jan 30, 2022
Overview
3
Commits
7
Pipelines
0
Changes
1
questions i stumbled upon:
use prefix match instead of regex?
takes higher precedence
only overwritable by more specific match
closes
https://git.cccv.de/infra/documentation/-/issues/115
Edited
Mar 19, 2022
by
psy
0
0
Merge request reports
Viewing commit
c97f1fdc
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
c97f1fdc
do not only match on start of url
· c97f1fdc
psy
authored
Feb 11, 2022
templates/vhost.conf.j2
+
1
−
1
View file @ c97f1fdc
Edit in single-file editor
Open in Web IDE
Show full file
@@ -89,7 +89,7 @@ server {
{% if vhost.disallow_dotfiles %}
# disallow every path starting with a dot except .well-known/
location ~
^
/\.(?!well-known\/).* {
location ~ /\.(?!well-known\/).* {
deny all;
}
{% endif %}
Loading