How to Enable WebSockets in Apache

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to Enable WebSockets in Apache

Postby JDBell » 02. August 2020 15:05

We have received new Apache agents that apparently require the use of WebSockets to phone home. Specifically the install guide states:

*"Apache HTTP server requires the proxy_wstunnel_module for proxying the WebSocket protocol"*

I'm familiar with WebSockets from a conceptual standpoint, but can't find any instruction on how to enable/config them in an Apache environment.

Any insight and or reference links much appreciated.
JDBell
 
Posts: 1
Joined: 02. August 2020 15:04
XAMPP version: latest
Operating System: Win 10

Re: How to Enable WebSockets in Apache

Postby Nobbie » 04. August 2020 09:30

Usually you simply have to include the appropriate module in httpd.conf (edit the file, you will find multiple examples of included modules), BUT i dont know whether Xampp delivers a module for wstunnel. If not, you cannot activate it (unfortunately). In that case try to install another Apache distribution, which comes with wstunnel.

You will be more successfull in a linux environment than under Windows, as Apache is developed under linux and many distributions come with Apache. Its also easier to build Apache and modules from scratch (compiling source).
Nobbie
 
Posts: 11918
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 112 guests