• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

NGINX force HTTPS

tomsit

Cheese
Community Manager
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.

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:
Can you PM me your nginx config file to have a look?
Of course you can remove any sensitive information from it.
 
PM'd

However any redirect rules I apply the same behaviour consists. When I try it in I.E it works but not with chrome. Can you confirm the same is happening at your end?
 
If you're still using the code, it actually works in all the browsers I have installed.
You probably just need to clear cache on your chrome.

Update: Cleared cache in my chrome browser and it is not redirecting to https anymore.
 
This is why I like managing my own server. These monitoring tools add too many customization. You should probably contact runcloud because they should have this feature on paid subscription, which I guess you're already using.

Report it, and they'll fix it.
 
It probably broke when I was trying to get the redirect to work. Just did a rebuild of nginx to fix what just became an big issue.

edit; looks like that did the trick for the redirect issue.

Thank you @lovedigit for your assistance in this matter.
 
Last edited:
edit; looks like that did the trick for the redirect issue.

Not sure if you were saying you've now fixed it but it's not redirecting for me at the moment...
 
Not sure if you were saying you've now fixed it but it's not redirecting for me at the moment...

You are right. It worked on my end after the rebuild and cache cleared, even tried on several computers just to be sure. But now it's the same, digging back in...
 
You are right. It worked on my end after the rebuild and cache cleared, even tried on several computers just to be sure. But now it's the same, digging back in...
Sorry, I went to bed. Just woke up.
It seems to be fixed at my end. Are you still working on it? Seems alright now.
 
Sorry, I went to bed. Just woke up.
It seems to be fixed at my end. Are you still working on it? Seems alright now.

Np, I have other work to do so had to sleep. Last i checked it worked aswell, but seems to be «living its own life.»
 
Very strange, another late night inc.

(this new theme hurts my eyes)
Yes, it is still not working. You should work closely with runcloud if there is no default option in their panel to enforce https.
I think they're the one who can point you to the right direction because they're the one who modify and manage these stacks. They decide how things are setup. It hard to tell how everything is setup on your system. And the code you sent me seems to be incomplete. There must be more to it.
 
Think I found the issue. In the runcloud Web Application you can have an "default" application. If you do, it won't redirect. It will enable the server ip to redirect to the defaulted web app. I've removed it and it should redirect now. Do you mind checking on your end? - Silly error if you ask me.
 
Last edited:
Back
Top