Re: Mod-rewrite problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15 November 2010 17:17, Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx> wrote:

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.za and not https://site.co.za which is why I was trying to get the redirect working..  

bugger.









[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux