GNU/Linux >> Linux Esercitazione >  >> Linux

Configurazione di Apache per gestire WebSocks

WebSocks è supportato da Apache a partire dalla versione 2.4.xx. Ecco alcune configurazioni minime per Apache 2.4.xx. in Ubuntu 14.04.x

Installa i moduli appropriati:
a2enmod proxy
a2enmod proxy_wstunnel

Configura VirtualHost (qui viene mostrata solo la parte 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. Configurazione del dispositivo Alsa predefinito (hw:0,0) in Asoundrc?

  2. Configurazione di Apache 2.4 con Fastcgi su Ubuntu 16.04 – Cosa devo fare con Php7.0-fpm.conf?

  3. Modifica il fuso orario di Apache/PHP

  4. Installa Apache su CentOS 8

  5. Installa Apache su Debian 10

Come installare apache bench su RHEL 8

Installazione e configurazione di Jenkins in Linux

Come installare Apache su Ubuntu 20.04

Come installare Apache su Ubuntu?

Configurazione della sicurezza IP in IIS

Esecuzione di Apache come utente diverso