Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroCRM OroCRM – Programming Questions WebSockets, apache2 and https

This topic contains 2 replies, has 2 voices, and was last updated by  amcastror 2 years, 2 months ago.

  • Creator
  • #53924


    Hi, I just installed OroCrm on my Ubuntu over https. My question is if there is a way to connect to the websocket server (clank) with this kind of installation.

    A little more info:
    On the same server, I got a simple chat app working with ClankBundle, but no https, and it works fine. After doing this, I tried to do the same thing but WITH https. To my surprise, the only way (I could find) to make this work is to use ProxyPass on apache.

    So, what I ended up doing was connecting like this:

    And adding this to the apache proxy_wstunnel.load:

    Of course, the socket server is running with that configuration, and the chat works.

    Finally, the question is how can I tell orocrm to use the “/websocket” at the end of the connection string, or if there is another way to do this (other than working with nginx, which I know handles this)

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #53925
    Hryhorii Hrebiniuk
    Hryhorii Hrebiniuk

    Hello @amcastror,

    You are doing right using proxy for this purpose. But instead of proxing by path ‘/websocket’, you have to proxy by port (8081 -> 8080) or host ( ->



    Thanks for the reply!

    I’m assuming that only the websocket should use the proxy, not the entire site. That’s why I’m using the mod_proxy_wstunnel module and not the mod_proxy (maybe I have an error of concept). At the apache website for this module the information is very limited and doesn’t provide any information on how to work with (for example) ports.

    Do you have any examples or references that I might use?

    Thanks a lot again!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.