The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using mod_proxy with WHM

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

  1. GoWilkes

    GoWilkes Well-Known Member

    Joined:
    Sep 26, 2006
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    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:

    http://server3.example.com/~myacct

    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 (parked.com)
    RewriteCond %{HTTP_HOST} parked [NC]
    RewriteRule ^(.*)$ http://server3.example.com/~myacct/$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,

    Jason
     
Loading...

Share This Page