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!

Custom line of code in httpd.conf is removed after cPanel updates

Discussion in 'EasyApache' started by Fictive Logics, Dec 13, 2017.

  1. Fictive Logics

    Fictive Logics Registered

    Joined:
    Dec 13, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I have a ratchet php chat server running on a cpanel server running on EC2. Because ratchet does not support https protocol I have to bypass https request to http via a proxybypass on apache httpd.conf as ProxyPass /wss2/ ws://www.yourdomain.com:8888

    Whenever cpanel is updated this line of code is being removed from httpd.conf how can I make sure that this remains intact even if cpanel updates and rebuilds apache config or server restarts. IF you can give me step by step instruction or a link to post that resolves this issue.

    Thank You
     
  2. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    285
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    In WHM, go to Apache Configuration --> Include Editor.

    Then add the code to the appropriate location you want it to be inserted: Pre Main Include, Pre VirtualHost Include, Post VirtualHost Include.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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