force primary domain name...
force primary domain name to use SSL
- 主页
- 后台控制中心
- 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: 2018/1/13 |
force primary domain name to use SSL 2018年1月20日 18:22
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: 2017/6/23 |
force primary domain name to use SSL 2018年1月23日 10:50
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: 2018/1/13 |
force primary domain name to use SSL 2018年1月23日 11:54
|
davidart Joined: 2018/1/13 |
force primary domain name to use SSL 2018年1月23日 15:11
This seems to be an accepted lighttpd.conf entry for forwarding http to https.
|
vesey Joined: 2017/6/23 |
force primary domain name to use SSL 2018年1月28日 11:39
|
davidart Joined: 2018/1/13 |
force primary domain name to use SSL 2018年1月28日 12:11
|
blackbarret Joined: 2017/4/26 |
force primary domain name to use SSL 2018年1月30日 15:02
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: 2018/1/13 |
force primary domain name to use SSL 2018年2月5日 10:52
|
blackbarret Joined: 2017/4/26 |
force primary domain name to use SSL 2018年2月5日 16:30
|
davidart Joined: 2018/1/13 |
force primary domain name to use SSL 2018年2月5日 16:36
|
It is currently 2024年12月19日 8:28 US Mountain Standard Time
2024年12月19日 8:28