Forward HTTP to HTTPS
Moderator: leecollings
Forward HTTP to HTTPS
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.
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
Ok, but how do i do that?
There's nothing behind port 80 btw.
There's nothing behind port 80 btw.
Re: Forward HTTP to HTTPS
Thanx!
Is all this not possible with the build-in webserver from Domoticz itself?
Is all this not possible with the build-in webserver from Domoticz itself?
-
Electrocut
- Posts: 22
- Joined: Sunday 04 May 2014 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Forward HTTP to HTTPS
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.
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
Sounds good. Is this possible in Domoticz?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.
- gizmocuz
- Posts: 3026
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Forward HTTP to HTTPS
What you want to do could be done with NGINX as a proxy
Quality outlives Quantity!
Re: Forward HTTP to HTTPS
Okay, I think I need NGINX at least. I will look at it, thank you!
-
essayreviews
- Posts: 1
- Joined: Thursday 09 November 2017 5:54
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Forward HTTP to HTTPS
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.