This guide explains how to configure OpenLiteSpeed / CyberPanel to proxy /app requests to a local WebSocket server on port 6001 for the domain example.com.
1. Prerequisites
CyberPanel / OpenLiteSpeed installed
Domain example.com already created in CyberPanel
WebSocket server running locally on 127.0.0.1:6001
2. Enable WebSocket Support
Login to CyberPanel
Go to: Websites → List Websites → Manage → example.com
Find Web Socket Proxy / Enable WebSocket
Set to Yes / Enabled
Set Timeout (recommended: 3600 seconds)
Save
This allows the virtual host to handle WebSocket connections.
3. Add WebSocket Proxy Definition
In the Web Socket Proxy section, click Add New Definition
Fill in:
Field
Value
URI*
/app
Address*
127.0.0.1:6001
Notes
WebSocket proxy for /app
Save and apply changes
Restart OpenLiteSpeed to activate the proxy
This forwards all requests to /app on example.com to the WebSocket server at 127.0.0.1:6001.