Tuesday, November 12, 2024
NextCloud Cloud

NextCloud Admin Issue Warning

  1. The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips.
  2. Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation.
  3. Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation.
  4. The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini: 1234567opcache.enable=1opcache.enable_cli=1opcache.interned_strings_buffer=8opcache.max_accelerated_files=10000opcache.memory_consumption=128opcache.save_comments=1opcache.revalidate_freq=1 Please double check the installation guides , and check for any errors or warnings in the log.

Cara Memperbaiki

The “Strict-Transport-Security” HTTP header is not set to at least “15552000” seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips

1. Ubah file httpd.conf dengan perintah berikut:

1nano /etc/httpd/conf/httpd.conf

2. Masukan baris berikut setelah

123<ifmodule mod_headers.c="">Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"</ifmodule>

Contoh:

01020304050607080910<virtualhost 139.162.62.27:443="">SuexecUserGroup "#1005" "#1001"ServerName drive.saad.web.idServerAlias www.drive.saad.web.idServerAlias mail.drive.saad.web.idServerAlias webmail.drive.saad.web.idServerAlias admin.drive.saad.web.id<ifmodule mod_headers.c="">Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"</ifmodule>

3. restart httpd dengan perintah

1systemctl restart httpd

Your web server is not properly set up to resolve “/.well-known/caldav”. Further information can be found in the documentation.

1. Buat direktori .well-know pada direktori root nextcloud dan berikan ownership pada direktori

1mkdir .well-known

2. Buat direktori caldav pada direktori root nextcloud dan berikan ownership pada direktori

1mkdir .well-known/caldav

Your web server is not properly set up to resolve “/.well-known/carddav”. Further information can be found in the documentation.

1. Buat direktori .well-know pada direktori root nextcloud dan berikan ownership pada direktori

1mkdir .well-known

2. Buat direktori caldav pada direktori root nextcloud dan berikan ownership pada direktori

1mkdir .well-known/carddav

3. Ubah .htaccess pada dokumen root nextcloud, dan masukkan baris berikut, ubah https://drive.saad.web.id/nextcloud. pada contoh berikut dokumen root nextcloud berada di public_html > nextcloud

12345RewriteRule ^\.well-known/host-meta https://drive.saad.web.id/nextcloud/public.php?service=host-meta [QSA,L]RewriteRule ^\.well-known/host-meta\.json https://drive.saad.web.id/nextcloud/public.php?service=host-meta-json [QSA,L]RewriteRule ^\.well-known/webfinger https://drive.saad.web.id/nextcloud/public.php?service=webfinger [QSA,L]RewriteRule ^\.well-known/carddav https://drive.saad.web.id/nextcloud/remote.php/dav/ [R=301,L]RewriteRule ^\.well-known/caldav https://drive.saad.web.id/nextcloud/remote.php/dav/ [R=301,L]

4. restart httpd dengan perintah

1systemctl restart httpd

The PHP OPcache is not properly configured. For better performance it is recommended to use the following settings in the php.ini:

1. Install OPcache dengan perintah berikut

1yum install php-opcache

2. Ubah opcache.ini dengan perintah berikut

1nano /etc/opt/rh/rh-php70/php.d/10-opcache.ini

ubah Isi sesuai berikut

1234567opcache.enable=1opcache.enable_cli=1opcache.interned_strings_buffer=8opcache.max_accelerated_files=10000opcache.memory_consumption=128opcache.save_comments=1opcache.revalidate_freq=1

3. restart httpd dengan perintah

1systemctl restart httpd

Selamat Mencoba..

(Visited 239 times, 1 visits today)

Similar Posts