Forum

WebSocket Configuration Error

Dima
5 February 2019, 16:16
Hello,

I'm trying to configure WebSocket option in my configuration file.

The VirtualHost section looks like:

VirtualHost {
Hostname = *
WebsiteRoot = /var/www/hiawatha
StartFile = index.html
WebSocket = ws://127.0.0.1:7890 /api/ws 15
}


The server failed to start with error:
Starting Hiawatha Web Server: Syntax error in hiawatha.conf on line 105.

105 is the line were the WebSocket configured. When commented the line the web server started successfully.

Would somebody help me with this problem, please?
Hugo Leisink
8 February 2019, 01:04
You're sure it's that line? Cause it seems ok to me.
This topic has been closed.