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!

mod_proxy_wstunnel issues

Discussion in 'Workarounds and Optimization' started by ChrisjV, Feb 21, 2018.

  1. ChrisjV

    ChrisjV Registered

    Joined:
    Jul 6, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    I’m currently running the latest version of Cpanel and receiving the following when connecting to a websocket with socket.io to a NodeJS server.


    This appears in /usr/local/apache/logs/error_log


    H01144: No protocol handler was valid for the URL /example.com/ (scheme 'wss'). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule


    This is indicating mod_proxy_wstunnel is not working correctly.


    We have setup the proxy and proxyPass directives as well to ensure this is working:


    #Proxy Stuff

    RewriteEngine On

    SSLProxyEngine On

    ProxyRequests Off


    ProxyPreserveHost On


    ProxyPass /example.com/ wss://test.websitehere.com:3000/example.com/
    ProxyPassReverse /example.com/ wss://test.websitehere.com:3000/example.com/


    ProxyPass "/" "http://test.websitehere.com:3000/"
    ProxyPassReverse "/" "http://test.websitehere.com:3000/"


    It really feels like something is going on here with mod_proxy_wstunnel. If i’m corerct WHM/Cpanel uses easyapache to enable mod_proxy_wstunnel and that is on by default. Also it seems we cannot unload this module without it removing the MPM apache module as well.


    Anyone have any ideas what is going on here?
     
    #1 ChrisjV, Feb 21, 2018
    Last edited by a moderator: Feb 21, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at your server's configuration?

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

    siim Registered

    Joined:
    Nov 21, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    have the same issue. any solution to it? or I'd also have to open support ticket?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @siim,

    Here's a quote from one of our Technical Analysts in the support ticket that was opened by the original poster (note that references to real domain names and usernames have been replaced with examples):

    The ticket submitter then sent a response with an additional note:

    Let me know if this information helps.

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

    siim Registered

    Joined:
    Nov 21, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    51
    helpful, not really.. still get the same error about invalid protocol handler.. so I just replaced wss:// part with http:// and from the first look of it, works fine..
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm glad to see you were able to get it working. Do you mind confirming the full step-by-step instructions of how you solved the issue in-case anyone else encounters the same error?

    Thanks!
     
    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