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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page