I have an Apache2 with Mod_Proxy to reach the backend (IIS with some websites, all configured with hostname on a single IP).
I want to add the host header to reach the domain using the IP of the proxy (not with hostname).
<VirtualHost MYPROXYIP>
ProxyPreserveHost On
ProxyRequests Off
ProxyVia On
ProxyTimeout 300
<Proxy *>
Allow from all
</Proxy>
ServerName www.mywebsite.com
ProxyPassReverse / http://MYBACKENDIP/
ProxyPass / http://MYBACKENDIP/
</VirtualHost>
Now, MYBACKENDIP need a hostname. how can I pass it ?