Apache-Einrichtung des Aliases
This commit is contained in:
parent
2b518c2b2c
commit
6dcde84319
4 changed files with 52 additions and 0 deletions
34
files/apache_site.conf
Normal file
34
files/apache_site.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
<Macro NCSite $domain $pool>
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerName $domain
|
||||
DocumentRoot /data/nextcloud/$domain/
|
||||
Include /etc/apache2/conf-available/sao-cache.conf
|
||||
IncludeOptional /etc/apache2/conf-available/$domain.alias.conf
|
||||
|
||||
ProxyTimeout 900
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/run/php/php-fpm-$pool.sock|fcgi://$domain/"
|
||||
</FilesMatch>
|
||||
|
||||
<Proxy "fcgi://$domain/">
|
||||
</Proxy>
|
||||
|
||||
<Directory /data/nextcloud/$domain/>
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
Options FollowSymLinks MultiViews
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
</Macro>
|
||||
|
||||
# Includieren der Variablen
|
||||
Include /etc/apache2/conf-available/nextcloud_sites.conf
|
||||
|
||||
UndefMacro NCSite
|
Loading…
Add table
Add a link
Reference in a new issue