So I have multiple IP's on one server and for each IP I have a SSL website configured. This is working fine.
However I server a number of non-SSL sites on the primary IP. The problem occurs when a user tries to visit the https version of one of these non-https websites. They are presented with the certificate for the main SSL website and then if they accept it they are forwarded to the https website.
What would be the best way to deal with this? I have tried to set up an apache default ssl host to catch these other requests but it doesn't seem to work. Maybe some redirect logic to forward requests not for the default ssl domain to the non https versions of the requested site? Any ideas are appreciated.