title: Nginx + PHP, Node.js and jQuery setup
body: <p>I would like to implement some live elements to an existing PHP app. So i installed Node.js and set it on to listen on port let s say 3000 as the Nginx server is currently serving my PHP app on port 80. </p>
  
  <p>SO far so good, node server works great and i can hit it from php with cURL. Now the problem is that i need to open a connection from an html (serverd by the PHP framework on ngix) so at localhost/index.html to a the node server at localhost:3000. So this mean having to make cross domain ajax call and it get messy.. 
  For those who haven't tried it's basically not possible (without ugly hacks) to make an ajax call on a sub domain or a different port on the same server. </p>
  
  <p>Would anyone see a better way to implement this whole setup ? </p>