On 15 November 2010 17:17, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:
> Redirect / https://www.site.co.za > > in the VirtualHost section for site.co.za (yes, you need separate virtual > host) > > I hope you have SSL certificate for www.site.co.za with alternative name > site.co.za, otherwise browsers will report a mismatch. Hi, I think I see the problem here. I have two virtual host files, one for non-ssl and one for ssl. <VirtualHost *:80> ServerName www.site.co.za ServerAlias site.co.za RedirectMatch ^ https://www.site.co.za/ </VirtualHost> <VirtualHost *:443> ServerName www.site.co.za ServerAlias site.co.za RedirectMatch ^http\://site\.co\.za https://www.site.co.za/ SSLEngine on SSLOptions +StrictRequire SSLCertificateFile /etc/apache2/ssl/site.co.za/server.crt SSLCertificateKeyFile /etc/apache2/ssl/site.co.za/server.key </VirtualHost> As far as I can tell the ssl encryption means that Apache can't do the redirect and the cliet only has a valid cert for the https://www.site.co.zaand not https://site.co.za which is why I was trying to get the redirect working.. bugger.