Hi Frank, thanks for hands-on. We are using up-to-date ubuntu 18 (I known is not a recent distribution).
I wondering this behaviour could be a bug in this version. I'm not getting sintaxe erros, only eventually errors in serving requests. Not even Bad gateway or general erros. After a restart, starts working again... Thanks Davi apachectl -M Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) alias_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authnz_ldap_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) filter_module (shared) geoip_module (shared) headers_module (shared) ldap_module (shared) mime_module (shared) mpm_event_module (shared) negotiation_module (shared) proxy_module (shared) proxy_balancer_module (shared) proxy_connect_module (shared) proxy_html_module (shared) proxy_http_module (shared) proxy_wstunnel_module (shared) remoteip_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) slotmem_shm_module (shared) socache_shmcb_module (shared) ssl_module (shared) status_module (shared) xml2enc_module (shared) ________________________________ De: Frank Gingras <thu...@apache.org> Enviado: quinta-feira, 8 de setembro de 2022 15:05 Para: users@httpd.apache.org <users@httpd.apache.org> Assunto: Re: [users@httpd] Intermitent 404 and 403 on proxied site while enabling Websocket Davi, 2.4.4 does not support WSS, so this isn't likely to work at all. If that is a distro package with backports, it must be an ancient EOL version, as I'm not aware of any distro still shipping 2.4.4. It would also be useful to see the output from apachectl -M On Thu, 8 Sept 2022 at 13:00, Davi Baldin Tavares <d...@anext.com.br<mailto:d...@anext.com.br>> wrote: Hi team, We are using httpd 2.4.4. This server has proxy reverse configured to more than 70 sites. While we enable a new proxy to a websocket site, other sites where running fine start getting intermittent erros 403 and 404. Imediatley, if we remove the new site and reload configuration, everything start working normally aging. The proxied websocket site always run fine. We've tried different RewriteRule without any positive effect. Do you have any advise? Any known issue regarding multiple virtual hosts and websockets? Thanks, Davi -------------------- Configuration of proxied websocket site -------------------- <virtualHost *:443> ServerAdmin ser...@domain.com<mailto:ser...@domain.com> ServerName myapp.domain.com<http://domain.com> ServerAlias myapp.domain2.com<http://domain2.com> ErrorLog /var/log/error.log CustomLog /var/log/access.log <IfModule mod_ssl.c> SSLEngine on SSLCertificateFile certs/cert.crt SSLCertificateKeyFile certs/key.key SSLCertificateChainFile certs/ca.crt </IfModule> RewriteEngine On RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteRule /(.*) ws://127.0.0.1:3000/$1<http://127.0.0.1:3000/$1> [P,L] RewriteRule /(.*) http://127.0.0.1:3000/$1 [P,L] ProxyPass / http://127.0.0.1:3000/ retry=1 ProxyPassReverse / http://172.0.0.1:3000/ ProxyRequests off </Virtualhost>