[thelist] Redirect to correct SSL Host on Apache

Max Schwanekamp lists at neptunewebworks.com
Mon Oct 2 02:41:58 CDT 2006

Our site hosted on Apache 1.3 has an SSL certificate installed on the null
host address, e.g. example.com (rather than, say,  www. or
secure.example.com).  While the php script redirects the client to the
correct host when clicking on links, sometimes people apparently type in
https://www.example.com and get a security warning popup in their browser,
because the certificate is good for example.com, but not for
www.example.com.  So my question is, how can I redirect clients to the
correct host without triggering a security warning in their browser?
This Apache 1.3.  I have access to both .htaccess and httpd.conf.  TIA!
Max Schwanekamp

More information about the thelist mailing list