Hey guys, I have a ISPConfig with 20 domains. Centos 7 + nginx. I configured ssl + https for domain1, and worked great. But if i enter in browser for https + domain2, this redirect me to https + domain1. What i need to do ? Thank you very much !
The reason is that nginx and apache server have to fall back to the first web they find for this port (443) when there is no website for this Domain + port combination, so this is not ispconfig specific and applies to all apache and nginx webservers. You have 3 options: a) Enable https for all sites. b) Add a second IP address that you use for all https sites while you use the first IP for non https sites only. c) add a default vhost (website with domain "000default.tld") so that all non matching ssl requests will go to this site instead of website 1, you can then add a page into the 000default.tld site that explains that no matching ssl site could be found.
Till, Thank you very much! I'll use a new ip, i think is the best option. All websites are using " * " in the field "IPv4-Address". So i need to put the current IP and this new in the System tab > Server ip Address, right ? After this , for the websites who will use HTTPS, i choose one IP in field IPv4-Address and to all others (just HTTP) i choose the other IP. Its right ? Thanks again!
Also, all websites DNS point to the current IP. Need to change the DNS record or just put the new IP in CentOS and do what i said above?
1) Add the new IP in the centos network configuration file. 2) Add the new IP under System > Server IP in ispconfig. 3) Change the dns records of the affected domain(s) and select the new IP in the website settings of these sites in ISPConfig.