Server Manager uses WebSockets for various features, including the Server Logs pages. If you are using a Reverse Proxy (e.g. nginx, apache2, caddy) to set up Server Manager, you may need to configure WebSocket "Upgrade" requests to enable these features.
Below is a brief guide for some more common web servers:
For more detail on this topic, you can read about it on the nginx website.
In your nginx configuration for Server Manager, add the following lines below your proxy_pass definition:
# WebSocket support.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
Once you have done this, restart the nginx server.
For more detail on this topic, you can read about it on the apache2 website
In your apache2 configuration for Server Manager, add the following lines below your ProxyPass definition, replacing proxy-address with the proxy host (likely localhost), and proxy-port with the Server Manager HTTP port.
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://proxy-address:proxy-port/$1" [P,L]
Once you have done this, restart the apache2 server,.
You don't need to do anything! Caddy works out of the box with WebSockets.
In general, you should be able to find solutions for other reverse proxies by searching for "[web server name] reverse proxy websocket".