V
V
VBKesha2012-11-02 16:03:09
Nginx
VBKesha, 2012-11-02 16:03:09

How to proxy VirtualHost+Websocket?

There is a web server on which Apache 2.4 is currently running and several sites on different domains. In one of the projects I wanted to use websockets. Apache hangs on port 80, the server cannot get one and the second IP, and I don’t want to. And here is the question of how to reorganize the server so that requests coming to one of the virtual hosts are proxied to a websocket server that hangs, for example, on 8081. Of course, it is advisable to get by with the Apache module, but I am also considering solutions based on Lighttpd / Ngnix, and other most importantly proven and reliable ones.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AGvin, 2012-11-02
@AGvin

To proxy Websockets through nginx, you will need to use the nginx_tcp_proxy_module anyway . In the documentation for it, there is a pretty good example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question