New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
explicitly handle specific path #53
Comments
On 2012/8/24 2:49, Valentin Kuznetsov wrote:
Thanks |
Hi, Here is nginx.conf I experiment with: worker_processes 1; events { tcp proxy to remote server via HTTPStcp { http {
} Please note that in last section of HTTPS server I experiment with location directive (obviously I don't know yet how to properly configure it, that's why I ask the question). Anyway, my back-end server runs on localhost:9000 and it has both /websocket (WebSocket) and /app (HTTP) apps. |
Thanks. But I'm afraid you can't use the same port with HTTP and tcp On 2012-8-24 21:21, Valentin Kuznetsov wrote:
Thanks, |
Is it technically impossible? Are you saying that I need to configure nginx to use different ports, where one will serve HTTP traffic and another WebSocket? Something like: Usually on production system people don't have much choice and are given just single access point (http and/or https access, therefore a single port). So the adoption of technology can be problematic. On Aug 24, 2012, at ,Aug 24, 11:36 AM, Weibin Yao(姚伟斌) wrote:
|
No, It's not supported yet. Otherwise you can just use the tcp proxy On 2012-8-25 0:02, Valentin Kuznetsov wrote:
Thanks, |
Hello, I've got application running on tomcat that is handing paths I want to set up ngix to handle both paths 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. |
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.
The text was updated successfully, but these errors were encountered: