I'm trying to use Apache Reverse Proxy to proxy back to two different OWA servers on the same domain. I also want to add on another SSL server to be on the Reverse Proxy. I'm got the Reverse Proxy working, but only one for one OWA. When I hit the OWA site, it works,but the other two does not.
Here is my httpd.conf config
ProxyRequest off
Servername <test.test.com>
ServerAdmin <test@test.com
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin test@test.com
ServerName ServerOWA1.test.com
ErrorLog /var/log/test_log
RewriteEngine On
RequestHeader set Front-End-Https "On"
ProxyPreserveHost On
SSLEngine On
SSLProxyEngine On
ProxyRequests Off
CacheDisable *
SSLCertificateFile /etc/cert
SSLCertificateKeyFile /etc/cert
SSLCertficateChainFile /etc/cert
RewriteRule ^/$ https(:)//serverowa1.test.com/owa [R]
RewriteRule ^/(.*) https(:)//serverowa1.test.com/$1 [P]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin test@test.com
ServerName ServerOWA2.test.com
ErrorLog /var/log/test_log
RewriteEngine On
RequestHeader set Front-End-Https "On"
ProxyPreserveHost On
SSLEngine On
SSLProxyEngine On
ProxyRequests Off
CacheDisable *
SSLCertificateFile /etc/cert
SSLCertificateKeyFile /etc/cert
SSLCertficateChainFile /etc/cert
RewriteRule ^/$ https(:)//serverowa2.test.com/owa [R]
RewriteRule ^/(.*) https(:)//serverowa2.test.com/$1 [P]
</VirtualHost>
Just curious if someone can please point me to the right direction or tell me what I'm doing wrong?