You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
770 B
28 lines
770 B
5 years ago
|
{% if ampache_alias is defined %}
|
||
|
Alias /{{ ampache_alias }} {{ ampache_root_dir }}/web
|
||
|
{% else %}
|
||
|
# No alias defined, create a vhost to access it
|
||
|
{% endif %}
|
||
|
|
||
|
RewriteEngine On
|
||
|
<Directory {{ ampache_root_dir }}/web>
|
||
|
AllowOverride All
|
||
|
Options FollowSymLinks
|
||
|
{% if ampache_allowed_ip is defined %}
|
||
|
Require ip {{ ampache_src_ip | join(' ') }}
|
||
|
{% else %}
|
||
|
Require all granted
|
||
|
{% endif %}
|
||
|
<FilesMatch \.php$>
|
||
|
SetHandler "proxy:unix:/run/php-fpm/{{ ampache_php_fpm_pool | default('ampache_' + ampache_id | string) }}.sock|fcgi://localhost"
|
||
|
</FilesMatch>
|
||
|
<FilesMatch "(.maintenance.*|.ansible.*|.t?git.*|.php_cs|.travis.*)">
|
||
|
Require all denied
|
||
|
</FilesMatch>
|
||
|
</Directory>
|
||
|
|
||
|
<Directory {{ ampache_root_dir }}/web/config>
|
||
|
Require all denied
|
||
|
</Directory>
|
||
|
|