I server SSL pages from https://example.com. If a user types in https://www.example.com, I want to redirect. I've the got rewrite rule working, but chrome displays an error message because the server identifies itself as example.com instead of www.example.com, so the rewrite rules don't execute.
Is there any way around this using apache virtual hosts, or do I need multiple certificates/a wildcard certificate?
CommonNameorSubjAltnameattributes. Also see wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI and httpd.apache.org/docs/current/ssl/ssl_intro.html#ssl – joschi Jul 9 '11 at 10:40