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!

installing the mod_proxy_html module for apache

Discussion in 'General Discussion' started by chermus, Dec 9, 2014.

  1. chermus

    chermus Registered

    Joined:
    Mar 20, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Maybe a noob question, but I have a problem installing the proxy_html module for apache.

    I am in need of a reverse proxy, now this is working now I need to give the current command with the proxy referral

    Code:
    ProxyHTMLDocType "<!DOCTYPE html>"
    When I do this I get the error

    Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration

    Now I searched the internet and it is clear that the proxy_html module is not installed or included in the core. But what I cannot find is an explanation on how to install it.

    Cheers,

    Carlo
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Have you considered upgrading to Apache 2.4 via EasyApache? This is a base module in version 2.4 per:

    Apache Module mod_proxy_html

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chermus

    chermus Registered

    Joined:
    Mar 20, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Then I am doing something wrong, because I have v. 2.4.10 installed

    I included my build info.

    I do not mean the proxy module, but the proxy html module.
     
    #3 chermus, Dec 9, 2014
    Last edited by a moderator: Dec 9, 2014
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please let us know if using a RawOpts file for Apache 2.4 helps. EX:

    Code:
    touch /var/cpanel/easy/apache/rawopts/Apache2_4
    vi /var/cpanel/easy/apache/rawopts/Apache2_4
    
    Add the following entry:

    Code:
    --enable-proxy-html=static
    Ensure it looks like this after saving the file:

    Code:
    # cat /var/cpanel/easy/apache/rawopts/Apache2_4
    --enable-proxy-html=static
    Then, rebuild Apache via EasyApache to activate this change.

    Documentation: Raw Opts

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cashito

    cashito Registered

    Joined:
    Dec 12, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I tried this and it didnt work. Any other ideas?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you open a support ticket so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cashito

    cashito Registered

    Joined:
    Dec 12, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    ticketid 5823619
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    To update, the instructions provided in my previous post worked. The user simply needed to run a successful build EasyApache to ensure the Raw Opt was enabled.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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