ansible-role-nextcloud/templates/apache2/nextcloud.conf.j2

37 lines
1.1 KiB
Text
Raw Normal View History

2021-06-26 02:53:44 +02:00
<Macro NCSite $domain $pool>
<VirtualHost *:80>
2021-06-26 02:53:44 +02:00
ServerName $domain
DocumentRoot /data/nextcloud/$domain/
Include /etc/apache2/conf-available/sao-cache.conf
IncludeOptional {{ apache_custom_conf_path }}/$domain.conf
ErrorLog /var/log/apache2/$domain.error
2021-06-26 02:53:44 +02:00
ProxyTimeout 900
<IfModule proxy_fcgi_module>
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:unix:/run/php/php-fpm-$pool.sock|fcgi://$domain"
</FilesMatch>
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>
<FilesMatch "^\.ph(ar|p|ps|tml)$">
Require all denied
</FilesMatch>
</IfModule>
2021-06-26 02:53:44 +02:00
<Directory {{ nextcloud_root }}/$domain/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
2021-06-26 02:53:44 +02:00
</Directory>
</VirtualHost>
2021-06-26 02:53:44 +02:00
</Macro>
# Includieren der Variablen
Include /etc/apache2/conf-available/nextcloud_sites.conf
UndefMacro NCSite