Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
apache
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
apache
Commits
cfe12644
Commit
cfe12644
authored
3 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Allow access to Apache chroot dir when it exists
parent
8a2fc9d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#20061
passed
3 years ago
Stage: lint
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/apache2.conf.j2
+11
-6
11 additions, 6 deletions
templates/apache2.conf.j2
with
11 additions
and
6 deletions
templates/apache2.conf.j2
+
11
−
6
View file @
cfe12644
...
...
@@ -165,32 +165,37 @@ Include ports.conf
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<
Directory
/
>
<
Directory
"/"
>
Options
FollowSymLinks
AllowOverride
None
Require
all
denied
</
Directory
>
<
Directory
/usr/share
>
<
Directory
"
/usr/share
"
>
AllowOverride
None
Require
all
granted
</
Directory
>
<
Directory
/var/www/
>
<
Directory
"
/var/www/
"
>
Options
Indexes
FollowSymLinks
AllowOverride
None
Require
all
granted
</
Directory
>
<
IfFile
"{{ apache_chroot_dir }}/var/www"
>
<
Directory
"{{ apache_chroot_dir }}/var/www/"
>
Options
Indexes
FollowSymLinks
AllowOverride
None
Require
all
granted
</
Directory
>
</
IfFile
>
#<Directory /srv/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
...
...
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