separa directories
This commit is contained in:
parent
c7ff875c62
commit
50797e7693
1 changed files with 21 additions and 20 deletions
|
@ -54,18 +54,19 @@
|
|||
{% endif %}
|
||||
|
||||
AllowOverride All
|
||||
</Directory>{% endif %}
|
||||
</Directory>
|
||||
{% endif %}
|
||||
|
||||
{% if item.directories is defined %}{% for directory in item.directories %}
|
||||
<Directory "{{ directory.path }}">
|
||||
{% if directory.options is defined %}
|
||||
Options {% for option in directory.options %}{{ option }} {% endfor %}
|
||||
{% endif %}
|
||||
|
||||
AllowOverride {{ directory.allow_override | default("All") }}
|
||||
Require {{ directory.require | default("all granted") }}
|
||||
{{ directory.custom_code | default("") }}
|
||||
</Directory>{% endfor %}{% endif %}
|
||||
</Directory>
|
||||
{% endfor %}{% endif %}
|
||||
|
||||
{% if item.directoriesmatches is defined %}{% for directorymatch in item.directoriesmatches %}
|
||||
<DirectoryMatch "{{ directorymatch.path }}">
|
||||
|
@ -76,7 +77,8 @@
|
|||
AllowOverride {{ directorymatch.allow_override | default("All") }}
|
||||
Require {{ directorymatch.require | default("all granted") }}
|
||||
{{ directorymatch.custom_code | default("") }}
|
||||
</DirectoryMatch>{% endfor %}{% endif %}
|
||||
</DirectoryMatch>
|
||||
{% endfor %}{% endif %}
|
||||
|
||||
## Logging
|
||||
ErrorLog "/var/log/apache2/{{ item.vhostname }}_error_ssl.log"
|
||||
|
@ -88,7 +90,6 @@
|
|||
## Rewrite rules
|
||||
RewriteEngine On
|
||||
|
||||
|
||||
## SSL directives
|
||||
SSLEngine on
|
||||
SSLCertificateFile "/etc/letsencrypt/live/{{ item.vhostname }}/fullchain.pem"
|
||||
|
|
Loading…
Reference in a new issue