Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
drupal
Commits
05c73be5
Commit
05c73be5
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Master See merge request ansible-roles/drupal!6
parents
28abc2c3
54b60763
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/vhost.conf
+19
-4
19 additions, 4 deletions
templates/vhost.conf
with
19 additions
and
4 deletions
templates/vhost.conf
+
19
−
4
View file @
05c73be5
...
...
@@ -90,18 +90,33 @@
AuthType
{{
drupal_domain
.
apache_auth
.
type
}}
AuthName
"{{ drupal_domain.apache_auth.name }}"
AuthUserFile
{{
webRoot
}}/
passwords
/{{
drupal_domain
.
apache_auth
.
user
}}
{%
if
drupal_domain
.
apache_auth
.
extra_users
is
defined
%}
{%
if
drupal_domain
.
apache_auth
.
ips
is
defined
%}
{%
for
ip
in
drupal_domain
.
apache_auth
.
ips
%}
SetEnvIF
X
-
Forwarded
-
For
^{{
ip
|
regex_escape
() }}$
AllowIP
{%
endfor
%}
{%
endif
%}
{%
if
drupal_domain
.
apache_auth
.
extra_users
is
defined
or
drupal_domain
.
apache_auth
.
ips
is
defined
%}
<
RequireAny
>
{%
if
drupal_domain
.
apache_auth
.
extra_users
is
defined
%}
{%
for
user
in
drupal_domain
.
apache_auth
.
extra_users
%}
{%
if
user
.
expression
is
defined
%}
<
RequireAll
>
Require
expr
"{{ user.expression }}"
Require
user
{{
user
.
user
}}
</
RequireAll
>
{%
else
%}
Require
user
{{
user
.
user
}}
{%
endif
%}
{%
endfor
%}
<
RequireAll
>
Require
{%
if
drupal_domain
.
apache_auth
.
password
is
defined
%}
user
{{
drupal_domain
.
apache_auth
.
user
}}{%
else
%}
all
granted
{%
endif
%}
{%
endif
%}
{%
if
drupal_domain
.
apache_auth
.
ips
is
defined
%}
Require
env
AllowIP
{%
for
ip
in
drupal_domain
.
apache_auth
.
ips
%}
Require
ip
{{
ip
}}
{%
endfor
%}
{%
endif
%}
Require
{%
if
drupal_domain
.
apache_auth
.
password
is
defined
%}
user
{{
drupal_domain
.
apache_auth
.
user
}}{%
else
%}
all
granted
{%
endif
%}
</
RequireAll
>
</
RequireAny
>
{%
else
%}
Require
user
{{
drupal_domain
.
apache_auth
.
user
}}
...
...
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