mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 12:34:12 +00:00
Fix HTTP to HTTPS redirect without subdomains (#180)
This commit is contained in:
parent
2b8fde7917
commit
5daf54ebde
1 changed files with 2 additions and 0 deletions
|
@ -346,6 +346,8 @@ export default (domain, domains, global) => {
|
|||
if (domain.server.wwwSubdomain.computed && !domain.server.redirectSubdomains.computed) {
|
||||
config.push(['server', httpRedirectConfig(domain, global, domain.server.domain.computed, `www.${domain.server.domain.computed}`)]);
|
||||
config.push(['server', httpRedirectConfig(domain, global, `www.${domain.server.domain.computed}`)]);
|
||||
} else if (!domain.server.wwwSubdomain.computed && !domain.server.redirectSubdomains.computed) {
|
||||
config.push(['server', httpRedirectConfig(domain, global, domain.server.domain.computed)]);
|
||||
}
|
||||
if (domain.server.cdnSubdomain.computed) {
|
||||
config.push(['server', httpRedirectConfig(domain, global, `cdn.${domain.server.domain.computed}`)]);
|
||||
|
|
Loading…
Reference in a new issue