cross-posted from: https://lemmyfly.org/post/2382
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
You must log in or register to comment.