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
d0538c55
Commit
d0538c55
authored
5 years ago
by
Eric Zillmann
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/gentner#2331 combination proposal 2
parent
c9682833
Branches
2331-combine2
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/vhost.conf
+14
-2
14 additions, 2 deletions
templates/vhost.conf
with
14 additions
and
2 deletions
templates/vhost.conf
+
14
−
2
View file @
d0538c55
...
...
@@ -130,7 +130,18 @@
{%
endif
%}
{%
endif
%}
</
Directory
>
{%
if
drupal_domain
.
apache_auth
is
defined
and
drupal_domain
.
apache_auth
.
domain_users
is
defined
and
drupal_domain
.
apache_auth
.
active
|
default
(
'true'
) ==
'true'
%}
{%
if
drupal_domain
.
apache_auth
is
defined
and
drupal_domain
.
apache_auth
.
active
|
default
(
'true'
) ==
'true'
%}
{%
if
drupal_domain
.
apache_auth
.
domain_location_users
is
defined
%}
{%
for
domain_location
in
drupal_domain
.
apache_auth
.
domain_location_users
%}
<
If
"%{HTTP_HOST} == '{{ domain_location.domain }}'"
>
AuthType
{{
drupal_domain
.
apache_auth
.
type
}}
AuthName
"{{ drupal_domain.apache_auth.name }}"
AuthUserFile
{{
webRoot
}}/
passwords
/{{
drupal_domain
.
apache_auth
.
user
|
default
(
drupal
.
id
) }}
Require
user
{{
domain_location
.
user
}}
</
If
>
{%
endfor
%}
{%
endif
%}
{%
if
drupal_domain
.
apache_auth
.
domain_users
is
defined
%}
{%
for
domain
in
drupal_domain
.
apache_auth
.
domain_users
%}
<
If
"%{HTTP_HOST} == '{{ domain.domain }}'"
>
AuthType
{{
drupal_domain
.
apache_auth
.
type
}}
...
...
@@ -140,7 +151,7 @@
</
If
>
{%
endfor
%}
{%
endif
%}
{%
if
drupal_domain
.
apache_auth
is
defined
and
drupal_domain
.
apache_auth
.
location_users
is
defined
and
drupal_domain
.
apache_auth
.
active
|
default
(
'true'
) ==
'true'
%}
{%
if
drupal_domain
.
apache_auth
.
location_users
is
defined
%}
{%
for
location
in
drupal_domain
.
apache_auth
.
location_users
%}
<
Location
{{
location
.
location
}}>
AuthType
{{
drupal_domain
.
apache_auth
.
type
}}
...
...
@@ -149,6 +160,7 @@
Require
user
{{
location
.
user
}}
</
Location
>
{%
endfor
%}
{%
endif
%}
{%
endif
%}
<
Directory
{{
docRoot
}}/.
git
/>
Require
all
denied
...
...
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