nextcloud: Eigener PHP-FPM-Master pro Nextcloud-Instanz
This commit is contained in:
parent
230c3f538f
commit
a996e6ebeb
19 changed files with 231 additions and 105 deletions
|
@ -1,34 +1,41 @@
|
|||
<Macro NCSite $domain $pool>
|
||||
<VirtualHost *:80>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<Directory /data/nextcloud/$domain/>
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
Options FollowSymLinks MultiViews
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
Require all granted
|
||||
AllowOverride All
|
||||
Options FollowSymLinks MultiViews
|
||||
<IfModule mod_dav.c>
|
||||
Dav off
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
</VirtualHost>
|
||||
</Macro>
|
||||
|
||||
# Includieren der Variablen
|
||||
Include /etc/apache2/conf-available/nextcloud_sites.conf
|
||||
|
||||
UndefMacro NCSite
|
||||
UndefMacro NCSite
|
||||
|
|
11
files/systemd/php-fpm@.socket
Normal file
11
files/systemd/php-fpm@.socket
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
After=network-online.target
|
||||
|
||||
[Socket]
|
||||
SocketUser=%i
|
||||
SocketGroup=%i
|
||||
SocketMode=0660
|
||||
ListenStream=/run/php/php-fpm-%i.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
Loading…
Add table
Add a link
Reference in a new issue