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 /
    ProxyPassReverse /
    ServerName hostname.example.com

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