On 11/15/2010 12:37 PM, Rudi Kramer wrote:
On 15 November 2010 17:17, Matus UHLAR - fantomas <uh...@fantomas.sk
<mailto:uh...@fantomas.sk>> wrote:
Redirect / https://www.site.co.za
in the VirtualHost section for site.co.za <http://site.co.za> (yes,
you need separate virtual
host)
I hope you have SSL certificate for www.site.co.za
<http://www.site.co.za> with alternative name
site.co.za <http://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 <http://www.site.co.za>
ServerAlias site.co.za <http://site.co.za>
RedirectMatch ^ https://www.site.co.za/
</VirtualHost>
<VirtualHost *:443>
ServerName www.site.co.za <http://www.site.co.za>
ServerAlias site.co.za <http://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
<http://site.co.za/server.crt>
SSLCertificateKeyFile /etc/apache2/ssl/site.co.za/server.key
<http://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.
Rudi,
Also note that Redirect and RedirectMatch operate on REQUEST_URI. The
protocol, hostname and port is not visible in that context.
Frank.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
" from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org