force primary domain name...
force primary domain name to use SSL
- Home
- Control Panel
- Community Forum
- Services
- Dynamic DNS Service
- force primary domain name to use SSL
- Community Forum
- force primary domain name to use SSL
Topic: force primary domain name to use SSL
I wish to force my primary Domain name to use an ssl connection.1. If I redirect with Port forward from 80 to 443 it uses my current Dynamic IP address instead of my current main domain name so my SSL cert which uses my domain name doesn't match the destination which is the IP address an dI get a verification error.2. If I try url forward to https://my.domain.name:443 it won't allow it saying domain name and the redirect url are the same.So is there a method that will alias http://my.domain to https://my.domain:443 ?
Reply with quote | Report
I would suggest using web server settings to redirect http to https. I know IIS allows you to do so: HTTP to HTTPS redirects on IIS 7.x and higher. What web server are you using?
Reply with quote | Report
anthonywebuser wrote:I would suggest using web server settings to redirect http to https. I know IIS allows you to do so: HTTP to HTTPS redirects on IIS 7.x and higher. What web server are you using?
Reply with quote | Report
This seems to be an accepted lighttpd.conf entry for forwarding http to https.This still doesn't work I can directly enter http://my.domainname.net:443 and reach my destination but I can't force a port redirect from my.domaniname.net to my.domainname.net:443 only my.domainname.net:80 => my.ip.addr.ess:443.
wrote:$HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") }}
Reply with quote | Report
davidart wrote:This seems to be an accepted lighttpd.conf entry for forwarding http to https.This still doesn't work I can directly enter http://my.domainname.net:443 and reach my destination but I can't force a port redirect from my.domaniname.net to my.domainname.net:443 only my.domainname.net:80 => my.ip.addr.ess:443.wrote:$HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") }}
Reply with quote | Report
vesey wrote:Are you using also using port forwarding function in Dynu control panel as well? If you use Dynu port forwarding, your domain my.domainname.net will be pointing to the IP address of Dynu port forwarding server. So if you try to go to my.domainname.net:80, it is not going to your web server, instead, it is going to Dynu port forwarding server. I suggest that you disable port forwarding and try.
Reply with quote | Report
Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.
Redirect permanent / https://url.of you.website.on.ssl/Remark the / in the line is not a mistake, it signifies the get request base (ex GET /)
Reply with quote | Report
blackbarret wrote:Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.Redirect permanent / https://url.of you.website.on.ssl/Remark the / in the line is not a mistake, it signifies the get request base (ex GET /)
Reply with quote | Report
davidart wrote:unfortunately this doesn't fix the problem. I'm able to redirect traffic from http to https using$HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") }}This allows access to my server with "my.domain.name:81" (81 being the server.port) but I am unable to port forward default port 80 requests to port 81 (in dynu webredirect). So I can't use a simple "my.domain.name" and access my server.I need to be able to port forward my.domain.name:80 => my.domain.name:81 and I'm only given the option of my.domain.name:80 => my.dynamic.ip.address:81blackbarret wrote:Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.Redirect permanent / https://url.of you.website.on.ssl/Remark the / in the line is not a mistake, it signifies the get request base (ex GET /)
Reply with quote | Report
blackbarret wrote:Are we talking about apache here????davidart wrote:unfortunately this doesn't fix the problem. I'm able to redirect traffic from http to https using$HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") }}This allows access to my server with "my.domain.name:81" (81 being the server.port) but I am unable to port forward default port 80 requests to port 81 (in dynu webredirect). So I can't use a simple "my.domain.name" and access my server.I need to be able to port forward my.domain.name:80 => my.domain.name:81 and I'm only given the option of my.domain.name:80 => my.dynamic.ip.address:81blackbarret wrote:Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.Redirect permanent / https://url.of you.website.on.ssl/Remark the / in the line is not a mistake, it signifies the get request base (ex GET /)
Reply with quote | Report
Author | Topic: force primary domain name to use SSL |
---|---|
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Saturday, January 20, 2018 6:22 PM
I wish to force my primary Domain name to use an ssl connection.1. If I redirect with Port forward from 80 to 443 it uses my current Dynamic IP address instead of my current main domain name so my SSL cert which uses my domain name doesn't match the destination which is the IP address an dI get a verification error.2. If I try url forward to https://my.domain.name:443 it won't allow it saying domain name and the redirect url are the same.So is there a method that will alias http://my.domain to https://my.domain:443 ?
|
anthonywebuser Joined: 6/23/2017 |
force primary domain name to use SSL Tuesday, January 23, 2018 10:50 AM
I would suggest using web server settings to redirect http to https. I know IIS allows you to do so: HTTP to HTTPS redirects on IIS 7.x and higher. What web server are you using?
|
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Tuesday, January 23, 2018 11:54 AM
|
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Tuesday, January 23, 2018 3:11 PM
This seems to be an accepted lighttpd.conf entry for forwarding http to https.
|
vesey Joined: 6/23/2017 |
force primary domain name to use SSL Sunday, January 28, 2018 11:39 AM
|
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Sunday, January 28, 2018 12:11 PM
|
blackbarret Joined: 4/26/2017 |
force primary domain name to use SSL Tuesday, January 30, 2018 3:02 PM
Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.
Redirect permanent / https://url.of you.website.on.ssl/Remark the / in the line is not a mistake, it signifies the get request base (ex GET /) |
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Monday, February 5, 2018 10:52 AM
|
blackbarret Joined: 4/26/2017 |
force primary domain name to use SSL Monday, February 5, 2018 4:30 PM
|
davidart Joined: 1/13/2018 |
force primary domain name to use SSL Monday, February 5, 2018 4:36 PM
|
It is currently Monday, November 25, 2024 12:24 PM US Mountain Standard Time
Monday, November 25, 2024 12:24 PM