Mod_proxy_wstunnel, sudo a2enmod proxy_wstunnel does not work on centos

Hi, I am trying to set mod_proxy_wstunnel as indicated in the link http://www.amoss.me.uk/2013/06/apache-2-2-websocket-proxying-ubuntu-mod_proxy_wstunnel/ , I am launching the Centos server. When i run the command
sudo a2enmod proxy_wstunnel

I get an error

sudo: a2enmod: command not found.

Can anyone help me.

Greetings Sunil

+4
source share
2 answers

This module is not indicated to /etc/httpd/conf.modules.d/00-proxy.conf be uncommented, but this does not mean that it is not. It is available in/etc/httpd/modules/mod_proxy_wstunnel.so

Just edit the file

vi /etc/httpd/conf.modules.d/00-proxy.conf

and add this to the end

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

Restart apache and check

service httpd restart
httpd -M | grep wstunnel

If you get

 proxy_wstunnel_module (shared)

Are you ready to quit

0
source

a2enmod Ubuntu Apache, . symlink .so , . Apache. Ubuntu Aapache, Centos. Centos /etc/httpd, /usr/lib 64/httpd/modules ( ), .

, mod_proxy_wstunnel Apache2.4 . . http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html.

-3

All Articles