I use Apache as reverse proxy for email web access. Proxy works fine when I connect to login page. I see url email-test.example.com. Unfortunately after login in email server is redirect back to email.example.com(I cant change in email server). So it disconnect me because I need access through proxy server.How can I keep url email-test.example.com ? I suppose I need use mod Rewrite, but I have absolutely no idea how to use it. Thank you
<VirtualHost *:80>
ServerName email-test.example.com
Redirect / https://email-test.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName email-test.example.com
CustomLog /var/log/httpd/access_email.log combined
ProxyPass / http://email.example.com/
ProxyPassReverse / http://email.example.com/
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
</VirtualHost>