Got the main domain setup to enforce ssl with the following conf file
server {
listen 80;
listen [::]:80 default_server;
proxy_cache_valid 301 1m;
server_name kenyabuzz.com www.kenyabuzz.com;
return 301 https://$host$request_uri;
}
which then if http is redirected to https and the main ssl conf received the request. However the subdomain awards.kenyabuzz.com is affected.
so the subdomain ends up with enforced ssl.
what would be the best way without affecting the main domain prevent the subdomain from being caught by this.
server {
listen 80;
listen [::]:80 default_server;
proxy_cache_valid 301 1m;
server_name kenyabuzz.com www.kenyabuzz.com;
return 301 https://$host$request_uri;
}
which then if http is redirected to https and the main ssl conf received the request. However the subdomain awards.kenyabuzz.com is affected.
so the subdomain ends up with enforced ssl.
what would be the best way without affecting the main domain prevent the subdomain from being caught by this.