I want to send traffic directed to remote.mydomain.com to a windows server with an internal ip address. Traffic from outside hits our public ip address and is directed to our ubuntu server 14.04 box, where also our website is hosted.
Currently we are using using vhost proxypass to redirect traffic to windows server:
<VirtualHost *:80>
ServerName remote.mydomain.com
ProxyPass / http://172.18.1.8:80/
ProxyPassReverse / http://172.18.1.8:80/
</VirtualHost>
But the problem is that, the browser shows the internal ip address like this:
http://172.18.1.8/Remote/.....
I also need to setup ssl at the windows box.
Any input would be appreciated.
Solution:
add 'ProxyPreserveHost On'in the vhost .conf
and
ProxyPreserveHost On
ProxyPass /remote http://172.18.1.8:80/
ProxyPassReverse /remote http://172.18.1.8:80/
in the vhost .conf of the domain itself and it works now.