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.

mod proxy not working on apache with cpanel and whm

Discussion in 'EasyApache' started by johnmerlino, Feb 12, 2012.

  1. johnmerlino

    johnmerlino Registered

    Feb 12, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    hey all,

    My plight was initially tracked here:

    apache2 - mod proxy not working on apache - Server Fault

    The purpose of me installing is so that when on site, when I click a link to site (lets pretend its ip address is, the browser will load the application on while mainitaing on address bar of browser.

    So I followed this tutorial:

    Install Mod_Proxy Apache module on WHM/CPanel CeEntOS Linux Server Without Recompiling Apache

    I loaded the following modules:

    root@ip-xxx-xxx-xxx [/tmp/httpd-2.2.21/modules/proxy]# ls -l
    -rwxr-xr-x 1 root root 88708 Jan 5 08:22 /usr/local/apache/modules/*
    -rwxr-xr-x 1 root root 49654 Jan 5 08:23 /usr/local/apache/modules/*
    -rwxr-xr-x 1 root root 73196 Jan 5 08:23 /usr/local/apache/modules/*
    My virtual host looks like this:
    DocumentRoot /home/eagl0028/public_html
    ## User eagl0028 # Needed for Cpanel::ApacheConf
    <IfModule mod_suphp.c>
    suPHP_UserGroup eagl0028 eagl0028
    <IfModule !mod_disable_suexec.c>
    SuexecUserGroup eagl0028 eagl0028
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    ProxyPreserveHost On
    ProxyPass /
    ProxyPassReverse /
    CustomLog /usr/local/apache/domlogs/ "%{%s}t %I .\n%{%s}t %O ."
    CustomLog /usr/local/apache/domlogs/ combined
    ScriptAlias /cgi-bin/ /home/eagl0028/public_html/cgi-bin/
    However, when I run:

    service httpd stop
    service httpd start

    And then post to relative url:

    <form accept-charset="UTF-8" action="/users/sign_in" class="user_new" id="user_new" method="post">

    Im expecting it to post to but it doesnt. I check the server logs and no sign of a request coming in. All that occurs is a 404 not found error with the url on top being

    So apparently, Im doing something wrong. Is there an easier way to accomplish what I am trying to do through cPanel interface?

    thanks for response

Share This Page