First.
After a change to the .htaccess (I did it to add Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" line) I receive this error:
SSLEngine on
# Intermediate configuration, tweak to your needs
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-$
SSLHonorCipherOrder on
SSLCompression off
SSLOptions +StrictRequire
# Always ensure Cookies have "Secure" set (JAH 2012/1)
Header edit Set-Cookie (?i)^(.*)(;\s*secure)??((\s*;)?(.*)) "$1; Secure$3$4"
#HSTS
Header always set Strict-Transport-Security "max-age=15768000"
edit vh host: nano /etc/apache2/sites-available/nextcloud-ssl.conf
add Include /etc/apache2/security-inc.conf
apcu is the best and fastest use it whit redis to look files dont forget to read Nextcloud docuemnt about cache have to add in /config/config.php this to so dont use opcache and use apcu and redis u can use opcache for wp or somthing:)
Dont use that config thats what im using and its working great
`apt install php7.2-dev`
`$ pecl install apcu (use that not apt install php7.x-apcu)`
`nano /etc/php/7.2/mods-available/apcu.ini`
Paste
extension = apcu.so
apc.shm_size = "50M"
apc.num_files_hint=10000
apc.user_entries_hint=10000
apc.max_file_size=5M
and add in config.php
'memcache.local' => '\\OC\\Memcache\\APCu',
for basic cache
test if apcu is working
> cd /var/www/html/
> wget https://github.com/krakjoe/apcu/blob/master/apc.php
> go to your website /apc.php
I dont know if i got all info right here but this is basic cache if I forgot somthing plz add it in comment.
Im new here still lerning how the hell this edit works looks horrible