i want to setup ssl encryption for my apache proxy, so that i don't have to encrypt every site.
I tried out the following, but that does not work:
Code: Select all
<VirtualHost *:80>
ServerName wiki.tunes.dyndns.org
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName wiki.tunes.dyndns.org
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/arx.crt
SSLCertificateKeyFile /etc/apache2/ssl/arx.key
ProxyPreserveHost On
ProxyPass / http://wiki.arx/
ProxyPassReverse / http://wiki.arx/
</VirtualHost>
How can i manage this?
Thanks in advance,
Antonis.
