Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
"tcp" directive is not allowed here #51
I have a websocket application that runs on a port on the local machine - I've recompiled nginx 1.2.3 with the TCP module, and have created a file for sites-enabled/dashboard.conf.
The file is as follows:
However I get an error:
Restarting nginx: nginx: [emerg] "tcp" directive is not allowed here in /etc/nginx/sites-enabled/dashboard.conf:1
This server runs multiple subdomains for this application, with the dashboard subdomain being the only one currently needing websockets.
Any ideas how I can get this working?
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
The tcp listened port can't use the same port as the HTTP port. The tcp
Maybe you can try the websocket mode in the tcp proxy module:
On 2012-8-9 18:53, Tane Piper wrote: