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 ?
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.
With no port forwarding:
-my.domainname.net takes me to to port 80 on my web server.
-my.domainname.net:443 is a 502 error.
-https://my.domainname.net:443/ takes me to the correct destination on web server.
Reply with quote |Report
Yeah there such a think indeed to enforce that, simple 'redirection' in the default vhost config entry would do that.
Remark the / in the line is not a mistake, it signifies the get request base (ex GET /)
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 /)
$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:81
Reply with quote |Report
davidart wrote:unfortunately this doesn't fix the problem. I'm able to redirect traffic from http to https usingblackbarret 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 /)
$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:81
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 usingblackbarret 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 /)
$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:81
Reply with quote |Report
| Author | Topic: force primary domain name to use SSL |
|---|---|
|
davidart Joined: 2018/1/13 |
2018年1月20日星期六 下午6: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 |
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 |
2018年1月23日星期二 上午11:54
|
|
davidart Joined: 2018/1/13 |
2018年1月23日星期二 下午3:11
This seems to be an accepted lighttpd.conf entry for forwarding http to https.
|
|
vesey Joined: 2017/6/23 |
2018年1月28日星期日 上午11:39
|
|
davidart Joined: 2018/1/13 |
2018年1月28日星期日 下午12:11
With no port forwarding: -my.domainname.net takes me to to port 80 on my web server. -my.domainname.net:443 is a 502 error. -https://my.domainname.net:443/ takes me to the correct destination on web server. |
|
blackbarret Joined: 2017/4/26 |
2018年1月30日星期二 下午3: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 |
2018年2月5日星期一 上午10:52
$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:81 |
|
blackbarret Joined: 2017/4/26 |
2018年2月5日星期一 下午4:30
|
|
davidart Joined: 2018/1/13 |
2018年2月5日星期一 下午4:36
|
2026年6月13日星期六 上午5:01
