SSL rewrite

Hi, all!

The system has several domains, one of which has an SSL website.

If i go to a domain without SSL, but with https - apache informs about an invalid certificate. This info comes from a domain page with SSL.
How to solve the problem? - domains that do not have SSL, their address must rewriten to http? or smth?


audriusp

Howdy,

Yeah, that’s the way that Apache handles that case… if you access Apache using a particular domain, and that doesn’t doesn’t exist, Apache will instead provide the default website for that IP address.

If that’s not be behavior you want, a simple solution would be to put the SSL website on a dedicated IP address, rather than sharing an IP with other domains on your server.

-Eric