Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Using mod_proxy with WHM

Discussion in 'General Discussion' started by GoWilkes, Oct 4, 2011.

  1. GoWilkes

    GoWilkes Well-Known Member

    Sep 26, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I'm running Apache 2.2, which (according to the Exhaustive Options list in EasyApache) does have mod_proxy installed.

    I'm transferring a site from one server to another. The new server has an address for the site like:

    We have a problem with the local cable internet provider in that they can take up to 2 weeks to update their DNS records, so even though I might change the domain's nameserver, the cable customers will still be redirected to the old nameserver. So, I'm hoping to modify the .htaccess file (or httpd.conf, if necessary) to import the new data on the old server. Like so:

    RewriteEngine on

    # Testing with a parked domain only (
    RewriteCond %{HTTP_HOST} parked [NC]
    RewriteRule ^(.*)$$1 [P,QSA,L]

    This isn't working, though. It runs for about 2 minutes, before finally giving a 502 (Temporarily Unavailable) error. If I remove the [P], it does redirect, though, so I'm pretty sure that the text is correct.

    I suspect that, even though mod_proxy is installed, it may not be enabled? But I'm not sure how to check that, and Google is giving me nothing. Or, maybe this has to be done in the httpd.conf, instead of .htaccess?

    Any advice would be greatly appreciated! TIA,


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice