Web not working after ssl installing

ok append this to end of the default file:

server {
   if ($host = purplenode.lv) {
       return 301 https://$host$request_uri;
   } # managed by Certbot
   listen 80;
   server_name purplenode.lv;
   return 404; # managed by Certbot
}

that should fix the redirection from http to https

try this for the login problem:
change (the order):
index index.html index.htm index.php;
index index.php index.html index.htm;

1 Like