ISPConfig 3 - How to Redirect All web traffic to another server

Discussion in 'HOWTO-Related Questions' started by buddyrigotti, Oct 23, 2014.

  1. buddyrigotti

    buddyrigotti New Member

    I am switching web hosting companies so I need to direct all incoming traffic from Server A to Server B. Both servers are running ISPConfig 3 but other than that, the servers are in no way related to one another. How would I go about doing this either using ISPConfig 3 or otherwise? Server A is running Debian 6 and Server B is running Debian 7. Both are Apache.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You could do this with the apache proxy and proxy_http module:

    ProxyRequests Off
            ProxyPreserveHost On
            <Proxy *>
                    Order deny,allow
                  Allow from all
            ProxyPass /
            ProxyPassReverse /
    The code should work also when you add it in the apache directives field of a website in ispconfig. Just ensure that you enable the proxy and proxy_http module in apache before you do that.
    malvin likes this.
  3. buddyrigotti

    buddyrigotti New Member

    Till, thanks for the help! I've installed the proxy modules and enabled them. I have added the code you provided to both /etc/apache2/sites-enabled/000-default.conf and also in the apache directives field of a specific domain in ISPConfig 3. But everything loads normally and nothing is redirected. Is there any way I can run a config check to make sure I have it set up properly?
  4. buddyrigotti

    buddyrigotti New Member

    Nevermind. Actually, it's working great now. Thanks for the help!

Share This Page