mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 23:14:58 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
29
roles/glpi/templates/httpd.conf.j2
Normal file
29
roles/glpi/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,29 @@
|
||||
{% if glpi_alias is defined %}
|
||||
Alias /{{ glpi_alias }} {{ glpi_root_dir }}/web
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
|
||||
<Directory {{ glpi_root_dir }}/web>
|
||||
AllowOverride All
|
||||
Options FollowSymLinks
|
||||
{% if glpi_src_ip is defined %}
|
||||
Require ip {{ glpi_src_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ glpi_php_fpm_pool | default('glpi_' + glpi_id | string) }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
|
||||
<FilesMatch "(.ansible_version|.git.*|(CONTRIBUTING|SUPPORT|CHANGELOG|COPYING)\.(md|txt))">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
</Directory>
|
||||
|
||||
{% for dir in [ 'scripts', 'locales', 'config', 'inc', 'vendor', '.github', 'bin' ] %}
|
||||
<Directory {{ glpi_root_dir }}/web/{{ dir }}>
|
||||
Require all denied
|
||||
</Directory>
|
||||
{% endfor %}
|
Reference in New Issue
Block a user