Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

explicitly handle specific path #53

Open
vkuznet opened this Issue · 7 comments

3 participants

@vkuznet

Hi,
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.
Thanks,
Valentin.

@yaoweibin
Owner
@vkuznet
@yaoweibin
Owner
@vkuznet
@yaoweibin
Owner
@machowski

Hello,
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?

@yaoweibin
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.