Hey,
So I have a problem. My site no longer redirects to https. I've changed from hybrid nginx+apache to nginx native. SSL is working fine in "manual" mode. Also it's configured with HSTS. I thought it should do https redirect automatically without any configuration.
Well, it didn't. So I've added this to nginx config without luck.
Why isn't this working? Is the new "force https hack" messing with my configuration? I can revert to nginx+apache for .htaccess use but I rather avoid it if possible.
So I have a problem. My site no longer redirects to https. I've changed from hybrid nginx+apache to nginx native. SSL is working fine in "manual" mode. Also it's configured with HSTS. I thought it should do https redirect automatically without any configuration.
Well, it didn't. So I've added this to nginx config without luck.
Code:
server {
listen 80;
server_name photoland.io;
return 301 https://$photoland.io$request_uri;
}
Why isn't this working? Is the new "force https hack" messing with my configuration? I can revert to nginx+apache for .htaccess use but I rather avoid it if possible.
Last edited: