GNU/Linux >> Tutoriales Linux >  >> Linux

Configuración de Apache para manejar WebSocks

WebSocks es compatible con Apache a partir de la versión 2.4.xx. Aquí hay algunas configuraciones mínimas para Apache 2.4.xx. en Ubuntu 14.04.x

Instale los módulos adecuados:
a2enmod proxy
a2enmod proxy_wstunnel

Configure VirtualHost (aquí solo se muestra la parte de WebSock)

# Make sure the backend server gets the right URL in 'Location:' http Header
ProxyPreserveHost On
#
# Forward only the websocks requests to the Websocks handler in the backend server
RewriteRule ^/websock/(.*) ws://my.backend.net:8080/websock/$1 [P]
ProxyPassReverse / ws://my.backend.net:8080/
#
# Forward the rest of the requests to the backend server as http requests
ProxyPass / http://my.backend.net:8080/
ProxyPassReverse / http://my.backend.net:8080/


Linux
  1. Configuración de Apache para manejar WebSocks

  2. Uso de HTTPS como servidor proxy en Apache 2.4

  3. ¿Configurar el dispositivo Alsa predeterminado (hw:0,0) en Asoundrc?

  4. Configuración de Apache 2.4 con Fastcgi en Ubuntu 16.04:¿qué debo hacer con Php7.0-fpm.conf?

  5. Instalar Apache en CentOS 8

Cómo instalar Apache Bench en RHEL 8

Instalación y configuración de Jenkins en Linux

Cómo instalar Apache en Ubuntu 20.04

Configuración de seguridad IP en IIS

Id. de subproceso frente a identificador de subproceso

Ejecutando Apache como un usuario diferente