"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCH
chat majorswitcher 1y ago 100%

this is one of the reasons of starting this server :) TIL how to redirect www. to the main secured endpoint

www.digitalocean.com

thanks to @Hopfgeist@feddit.de for noticing www.lemmyfly.org was not secured and not pointing to the lemmy instance.

Checking the lemmy ansible files I saw your nginx configuration file is located in /etc/nginx/sites-available/[sitename].conf

To add a redirect for your www.[sitename, add: (lemmyfly.org example)

server {
  server_name www.lemmyfly.org;
  return 301 $scheme://lemmyfly.org$request_uri;
}

check your config with sudo nginx -t

restart nginx: sudo systemctl restart nginx

1
0
Comments 0