this post was submitted on 12 Jun 2023
12 points (100.0% liked)

Selfhosted

573 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Resources:

> Any issues on the community? Report it using the report flag.

> Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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 are viewing a single comment's thread
view the rest of the comments
[–] bustrpoindextr@lemmy.world 2 points 1 year ago (1 children)
[–] ptz@dubvee.org 3 points 1 year ago* (last edited 1 year ago)

Not as brutal as calling customer service for something and having their hold announcements read their website address to you on a loop:

"For faster service, please visit our website at double-you double-you double-you dot blah blah dot com. Again, that's double-you double-you double-you dot blah blah dot com."

And if you go to that address, it redirects you without the "www". :facepalm:

Worst part is that if I could have solved the problem through the website, I would have. Calling support is like a last measure of resolution.