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

Selfhosted

42763 readers
1395 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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 years 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

top 3 comments
sorted by: hot top controversial new old
[–] ptz@dubvee.org 9 points 2 years ago* (last edited 2 years ago) (1 children)

You're nicer than I am. If someone's still typing "www" into the URL bar, I make certain assumptions about them with my site's Nginx config:

server {
  server_name www.dubvee.org;
  return 301 https://aarp.org;
}
[–] bustrpoindextr@lemmy.world 2 points 2 years ago (1 children)
[–] ptz@dubvee.org 3 points 2 years ago* (last edited 2 years 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.

load more comments
view more: next ›