Page 1 of 1

Forward HTTP to HTTPS

Posted: Friday 27 October 2017 12:14
by beejee78
I've created a HTTPS certificate with letsencrypt for my domain now and it's working good when i connect to https://<my-domain>

But i always have to type https:// in front of my domain name. Is it possible to redirect to https automatically.
I searched everywhere but can't find an answer.

Thanx in advance!

BTW: Domoticz is running on an RPI.

Re: Forward HTTP to HTTPS

Posted: Friday 27 October 2017 13:40
by beejee78
Ok, but how do i do that?
There's nothing behind port 80 btw.

Re: Forward HTTP to HTTPS

Posted: Friday 27 October 2017 15:25
by beejee78
Thanx!
Is all this not possible with the build-in webserver from Domoticz itself?

Re: Forward HTTP to HTTPS

Posted: Friday 27 October 2017 16:55
by Electrocut
Another option would be to add "HTTP Strict Transport Security" (HSTS) header to your web server.

With this header set, if you type http://domain in your address bar, your browser will automatically switch to https://domain, without even trying to contact the http://domain server.

Re: Forward HTTP to HTTPS

Posted: Monday 30 October 2017 8:16
by beejee78
Electrocut wrote: Friday 27 October 2017 16:55 Another option would be to add "HTTP Strict Transport Security" (HSTS) header to your web server.

With this header set, if you type http://domain in your address bar, your browser will automatically switch to https://domain, without even trying to contact the http://domain server.
Sounds good. Is this possible in Domoticz?

Re: Forward HTTP to HTTPS

Posted: Monday 30 October 2017 8:17
by gizmocuz
What you want to do could be done with NGINX as a proxy

Re: Forward HTTP to HTTPS

Posted: Monday 30 October 2017 9:24
by beejee78
Okay, I think I need NGINX at least. I will look at it, thank you!

Re: Forward HTTP to HTTPS

Posted: Thursday 09 November 2017 6:07
by essayreviews
good post.how to covert the http to https.I need the https certificate,because the https is most valuable for site.how to convert that.