2021-06-26 02:53:44 +02:00
|
|
|
<Macro NCSite $domain $pool>
|
2022-07-26 16:44:42 +02:00
|
|
|
<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 /etc/apache2/conf-available/$domain.alias.conf
|
|
|
|
ProxyTimeout 900
|
|
|
|
|
2022-07-26 16:44:42 +02:00
|
|
|
<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>
|
|
|
|
<Files xmlrpc.php>
|
|
|
|
Require all denied
|
|
|
|
</Files>
|
|
|
|
<Files wp-config.php>
|
|
|
|
Require all denied
|
|
|
|
</Files>
|
|
|
|
</IfModule>
|
2021-06-26 02:53:44 +02:00
|
|
|
|
|
|
|
<Directory /data/nextcloud/$domain/>
|
2022-07-26 16:44:42 +02:00
|
|
|
Require all granted
|
|
|
|
AllowOverride All
|
|
|
|
Options FollowSymLinks MultiViews
|
|
|
|
<IfModule mod_dav.c>
|
|
|
|
Dav off
|
|
|
|
</IfModule>
|
2021-06-26 02:53:44 +02:00
|
|
|
</Directory>
|
2022-07-26 16:44:42 +02:00
|
|
|
</VirtualHost>
|
2021-06-26 02:53:44 +02:00
|
|
|
</Macro>
|
|
|
|
|
|
|
|
# Includieren der Variablen
|
|
|
|
Include /etc/apache2/conf-available/nextcloud_sites.conf
|
|
|
|
|
2022-07-26 16:44:42 +02:00
|
|
|
UndefMacro NCSite
|