0 like 0 dislike
1 view
in Bilgi Teknolojileri by anonymous Bilge (165k points)
nextcloud http to https

2 Answers

0 like 0 dislike
by anonymous Bilge (165k points)

Şu dosyayı açınız; /opt/lampp/htdocs/  .htaccess  ;

<IfModule mod_rewrite.c>

  RewriteEngine on

  RewriteCond %{HTTPS} off

  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

  RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]

  RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]

  RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]

  RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]

  RewriteRule ^remote/(.*) remote.php [QSA,L]

  RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]

  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*

  RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]

</IfModule>

0 like 0 dislike
by anonymous Bilge (165k points)

<IfModule mod_headers.c>

  Header set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"

  Options -Indexes

// security uyarısını kaldırıyor.
...