mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
44
roles/phpmyadmin/templates/httpd.conf.j2
Normal file
44
roles/phpmyadmin/templates/httpd.conf.j2
Normal file
@@ -0,0 +1,44 @@
|
||||
{% if pma_alias is defined %}
|
||||
Alias /{{ pma_alias }} {{ pma_root_dir }}/web
|
||||
{% else %}
|
||||
# No alias defined, create a vhost to access it
|
||||
{% endif %}
|
||||
|
||||
ProxyTimeout 1800
|
||||
<Directory {{ pma_root_dir }}/web>
|
||||
AllowOverride All
|
||||
Options FollowSymLinks
|
||||
{% if pma_allowed_ip is defined %}
|
||||
Require ip {{ pma_allowed_ip | join(' ') }}
|
||||
{% else %}
|
||||
Require all granted
|
||||
{% endif %}
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php-fpm/{{ pma_php_fpm_pool | default('pma_' + pma_id | string) }}.sock|fcgi://localhost"
|
||||
</FilesMatch>
|
||||
|
||||
<FilesMatch "(\.git.*|README|LICENSE|DCO|CONTRIBUTING\.md|ChangeLog|composer\..*|config(\.sample)?\.inc\.php)">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/examples>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/libraries>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/sql>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/locales>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/setup>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/sql>
|
||||
Require all denied
|
||||
</Directory>
|
||||
<Directory {{ pma_root_dir }}/web/vendor>
|
||||
Require all denied
|
||||
</Directory>
|
Reference in New Issue
Block a user