title: How to get a WebSocket server run on aws
body: <p>I'm developing an iOS app that requires realtime dual-way server/client messaging.</p>
  
  <p>I'm trying to use <a href="http://www.zaphoyd.com/websocketpp" rel="nofollow">WebSocket++</a> to develop a WebSocket server app on an AWS EC2. Have to use C++ because that's the only language I know on the server side.
  The problem is I'm a fresh guy on server side development. I have 2 very basic questions:</p>
  
  <p>1, Do I need have to setup an HTTP server like apache/nginx in order to get websocket running?
  That is, can websocket app live independently alone?</p>
  
  <p>2, I have now setup an nginx server in case it is a must have, is there any resource that I can refer to to make nginx &amp; websocket work together well?</p>