RE: Intermitent 404 and 403 on proxied site while enabling Websocket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <thumbs@xxxxxxxxxx>
Enviado: quinta-feira, 8 de setembro de 2022 15:05
Para: users@xxxxxxxxxxxxxxxx <users@xxxxxxxxxxxxxxxx>
Assunto: Re: 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 <davi@xxxxxxxxxxxx> 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 server@xxxxxxxxxx
ServerName myapp.domain.com
ServerAlias myapp.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 [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>


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux