nextcloud-deb/debian/apache/nextcloud.conf
2023-02-24 09:12:52 +01:00

47 lines
1.1 KiB
Plaintext

Alias /nextcloud "/var/www/nextcloud/"
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
</IfModule>
<Directory "/var/www/nextcloud">
Options +FollowSymLinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
<IfModule mod_env.c>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
SetEnv htaccessWorking true
</IfModule>
# PHP 7.x
<IfModule mod_php7.c>
php_value upload_max_filesize 511M
php_value post_max_size 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
</IfModule>
# PHP 8+
<IfModule mod_php.c>
php_value upload_max_filesize 511M
php_value post_max_size 511M
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
</IfModule>
</Directory>
<Directory "/var/www/nextcloud/data/">
Require all denied
</Directory>