Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ws requests don't come through in apache2 reverse proxies. #5002

Open
Speiger opened this issue Apr 14, 2024 · 2 comments
Open

Bug: ws requests don't come through in apache2 reverse proxies. #5002

Speiger opened this issue Apr 14, 2024 · 2 comments
Labels
Bug Something isn't working Triage

Comments

@Speiger
Copy link

Speiger commented Apr 14, 2024

Steps to reproduce the behavior

  • 1: Install focal board using git clone and running the docker command.
  • 2: setup the apache2 config
  • 3: open the board and look at network console and see that the ws/wss connection fails
    opera_bLSPZB3cvF
Apache2

<VirtualHost *:80>
	ServerName myURL.com
	Redirect permanent / https://myURL.com/
</VirtualHost>

<VirtualHost *:443>
	ServerName myURL.com
	ProxyPreserveHost On
	
	AllowEncodedSlashes NoDecode
	SSLEngine On
	ProxyPass /ws/ ws://127.0.0.1:8082/
	ProxyPassReverse /ws/ ws://127.0.0.1:8082/
	
	<Location />
		Require all granted
		ProxyPass http://127.0.0.1:8082/
		ProxyPassReverse http://127.0.0.1:8082/
		ProxyPassReverseCookieDomain 127.0.0.1 myURL.com
	</Location>
	
	SSLCertificateFile /etc/letsencrypt/live/myURL.com/cert.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/myURL.com/privkey.pem
	SSLCertificateChainFile /etc/letsencrypt/live/myURL.com/chain.pem
	ProxyPass / http://localhost:8082/ nocanon
	ProxyPassReverse / http://localhost:8082/
</VirtualHost>

Expected behavior

That the focal board setup works with apache2 and is responsive and doesn't require a refresh for any change done.
A best solution would be that a script for apache2 is provided.

Edition and Platform

  • todays git patch and ubuntu 22.04
@Speiger Speiger added Bug Something isn't working Triage labels Apr 14, 2024
@Roukurai
Copy link

Roukurai commented Aug 3, 2024

Have you been able to get this to work? I constantly get one error or another. At some point I got that I was not using the upgrade to the ws, however, it was setup.

I've attempted several different things but can't get the reverse proxy to work.

@Speiger
Copy link
Author

Speiger commented Aug 3, 2024

@Roukurai nope planning to switch to NGix because this will not work apache reverse proxy and on top of that it looks like that the apache reverse proxy is so outdated/not supported that it is better to switch to something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage
Projects
None yet
Development

No branches or pull requests

2 participants