I have to configure a reverse proxy to redirect the HTTPs Request to another host which is also running HTTPs,,,But I get stuck
Here is the virtualhost configuration on my Apache as the reverse Proxy
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ServerName mail.mydomain.com
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
SSLProxyEngine on
<Proxy "*">
Order allow,deny
Allow from all
</Proxy>
ProxyPass / https://192.168.1.6/webmail/
ProxyPassReverse / https://192.168.1.6/webmail/
ErrorLog /var/log/apache2/webmail_log
CustomLog /var/log/apache2/webmail-access_log combined
</VirtualHost>
On my browser I use this address http://mail.mydomain.com
But it only redirect the request to the HTTPs at the reverse proxy server not the HTTPs at the mail host.
Thanks folks