Https:// wrongly redirects to other site... help


#1

I notice all 443 HTTPS request are redirected to one of the sites installed even if that test subdomain is never been installed on the server before

i have multiple sites installed on a ee server. the problem i encounter is with https redirect of removed sites and remains after reinstall the site, but also occurs even if i never installed the site and bare IP is also getting redirected to a site on the server

if i open with the ip it gets redirected to one of the sites installed, example https://123.456.789.314 is a 301 to https://www.1site.com - (it should show nginx welcome page) https://subdomain.example.com is a 301 to https://www.1site.com - (site was removed so it should show nginx welcome page?)

reinstall subdomain.example.com then test: https://subdomain.example.com is a 301 to https://www.1site.com - (site is been recently installed but still redirect to https://www.1site.com)

every test is been done incognito window to clear caches still where to check for conf problem?

im not sure why all of those redirects end on the same site, perhaps it was the first one installed but i cant remember that or its because it starts with a number ( so its maybe choosing to the first one on alphabetical order?)

http:// show no problems after i removed forced-ssl-subdomain.example.com.conf but by default EE fails to remove that file from the server. otherwise http request also get redirected to https://www.1site.com


#2

i tried to see default conf, with:

$ sudo ee site edit default  
Enter site name : default
site default does not exist

is that expected?


#3