GNU/Linux >> Tutoriels Linux >  >> Linux

Configuration d'Apache pour gérer WebSocks

WebSocks est pris en charge par Apache à partir de la version 2.4.xx. Voici quelques configurations minimales pour Apache 2.4.xx. dans Ubuntu 14.04.x

Installez les modules appropriés :
a2enmod proxy
a2enmod proxy_wstunnel

Configurer le VirtualHost (seule la partie WebSock est présentée ici)

# 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. Configuration d'Apache pour Magento pour afficher différentes vues de magasin à partir de différentes URL/domaines.

  2. Utilisation de HTTPS comme backend proxy dans Apache 2.4

  3. Configuration du périphérique Alsa par défaut (hw:0,0) dans Asoundrc ?

  4. Configuration d'Apache 2.4 avec Fastcgi sur Ubuntu 16.04 - Que dois-je faire avec Php7.0-fpm.conf ?

  5. Installer Apache sur CentOS 8

Comment installer apache bench sur RHEL 8

Installer et configurer Jenkins sous Linux

Changer le fuseau horaire Apache/PHP

Comment installer Apache sur Ubuntu 20.04

Comment installer Apache sur Ubuntu ?

Configuration de la sécurité IP dans IIS