Set PHP memory limit to 512 MB for Nextcloud
Reformat Nextcloud's virtual host configuration and set it's PHP memory limit to 512 MB
This commit is contained in:
parent
d1ad35d0c1
commit
c914f93cdf
@ -1,26 +1,27 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName {{ nc_domain }}
|
ServerName {{ nc_domain }}
|
||||||
|
|
||||||
ServerAdmin {{ nc_admin_email }}
|
ServerAdmin {{ nc_admin_email }}
|
||||||
DocumentRoot {{ nc_dir }}/public_html
|
DocumentRoot {{ nc_dir }}/public_html
|
||||||
|
|
||||||
<Directory {{ nc_dir }}/public_html>
|
<Directory {{ nc_dir }}/public_html>
|
||||||
|
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
|
|
||||||
<IfModule mod_dav.c>
|
<IfModule mod_dav.c>
|
||||||
Dav off
|
Dav off
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
SetEnv HOME {{ nc_dir }}/public_html
|
SetEnv HOME {{ nc_dir }}/public_html
|
||||||
SetEnv HTTP_HOME {{ nc_dir }}/public_html
|
SetEnv HTTP_HOME {{ nc_dir }}/public_html
|
||||||
|
|
||||||
</Directory>
|
# Nextcloud recommends 512MB
|
||||||
|
php_value memory_limit 512M
|
||||||
|
</Directory>
|
||||||
|
|
||||||
ErrorLog {{ nc_dir }}/logs/error.log
|
ErrorLog {{ nc_dir }}/logs/error.log
|
||||||
CustomLog {{ nc_dir }}/logs/access.log combined
|
CustomLog {{ nc_dir }}/logs/access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user