I'm new to nginx, so my question may seems silly. Anyway, I'm trying to come up with configuration of nginx which will allow proxy to websocket server only for specific path, e.g. /websocket, while preserve all other paths (including default one /) intact and handled by http nginx configuration. How can I do that? I found that I can explicitly add new location in http section, but default one is still redirected to tcp proxy. In other words, right now the the proxy redirection is done implicitly, while I'd like to have explicit redirection.
I think I've got similar problem.
I've got application running on tomcat that is handing paths
localhost:8080 - regular http page
localhost:8080/websocket - websocket connection
I want to set up ngix to handle both paths
mydomain.com and mydomain.com/websocket
As far as I understand from this topic it is not possible right now? Is there any plan to support such feature? Any workaround?
As the official Nginx team will add this feature in the first season of 2013 (http://trac.nginx.org/nginx/roadmap ). This modification need change the nginx core code a lot. I don't want to do it in my end. Let's wait for that.