# NGINX proxy websocket

**URL:** <https://www.ruby-forum.com/t/nginx-proxy-websocket/227391>\
**Category:** NGINX\
**Created:** [March 14, 2013, 12:00am UTC](https://www.ruby-forum.com/t/nginx-proxy-websocket/227391 "2013-03-14T00:00:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazrat\_Shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/94ad74/32.png) [@Hazrat\_Shah](https://www.ruby-forum.com/u/Hazrat_Shah)\
**Post date:** [March 14, 2013, 12:00am UTC](https://www.ruby-forum.com/t/nginx-proxy-websocket/227391/1 "2013-03-14T00:00:29Z")

</div>

I am using the Nginx v1.3.14 server proxy. I am sending the Websocket  
HTTP connection request “CONNECT HostName:Port HTTP/1.1” packet to the  
proxy from the client. It responds with an http-alt ack packet. How  
can I configure the proxy to return the HTTP reply “HTTP/1.1 200”? I  
also do not see in Wireshark trace the proxy attempting to establish a  
TCP connection with the Websocket server.

-HS

This e-mail message and all attachments transmitted with it may contain  
legally privileged and confidential information intended solely for the  
use of the addressee. If you are not the intended recipient, you are  
hereby notified that any reading, dissemination, distribution, copying,  
or other use of this message or its attachments is strictly prohibited.

---

<div class="post-metadata">

**Author:** ![Hazrat\_Shah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/94ad74/32.png) [@Hazrat\_Shah](https://www.ruby-forum.com/u/Hazrat_Shah)\
**Post date:** [March 14, 2013, 6:04am UTC](https://www.ruby-forum.com/t/nginx-proxy-websocket/227391/2 "2013-03-14T06:04:18Z")

</div>

On Wed, Mar 13, 2013 at 10:59:38PM +0000, Hazrat Shah wrote:

> I am using the Nginx v1.3.14 server proxy. I am sending the Websocket  
> HTTP connection request “CONNECT HostName:Port HTTP/1.1” packet to the  
> proxy from the client. It responds with an http-alt ack packet. How can  
> I configure the proxy to return the HTTP reply “HTTP/1.1 200”? I also do  
> not see in Wireshark trace the proxy attempting to establish a TCP  
> connection with the Websocket server.

Here are instuctions on how to configure WebSocket proxying in nginx:

> **[WebSocket proxying](http://nginx.org/en/docs/http/websocket.html)**
