w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can I Modify What IP Address a Named Host Redirects To?

assuming that the Host you are proxying to uses name based hosting, and just accessing the website via IP won't work, you can use the ProxyPreserveHost option to send the hostname along with the proxy request to the IP listed in the url.

<VirtualHost *:*>
    ProxyPreserveHost On
    ProxyPass / http://192.168.111.2/
    ProxyPassReverse / http://192.168.111.2/
    ServerName hostname.example.com
</VirtualHost>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.