Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Meta] Nginx HTTPS redirection not working #59

Closed
kubo6472 opened this issue Aug 2, 2022 · 1 comment
Closed

[Meta] Nginx HTTPS redirection not working #59

kubo6472 opened this issue Aug 2, 2022 · 1 comment

Comments

@kubo6472
Copy link

kubo6472 commented Aug 2, 2022

accidentally going to http results in nginx 404 error on the main instance.

something like this would probably fix it:

server {
    listen 80;
    server_name farside.link;
    return 301 https://$server_name$request_uri;
}
@benbusby
Copy link
Owner

benbusby commented Aug 2, 2022

Oops, I was messing around with my Nginx config and must've disabled the https redirection. Thanks -- fixed now.

@benbusby benbusby closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants