Jezus m 8 , you can count to ten , impressiveP <| sep |> Think of your web app more like client ' s browser EC 2 RDSYour application in EC 2 is presumably fairly agnostic of what is connecting to it , e . g . it doesn ' t care whether it is the website or the desktop app or a curl from the command line . Think of your web app more like client ' s browser EC 2 RDSYour application in EC 2 is presumably fairly agnostic of what is connecting to it , e . g . it doesn ' t care whether it is the website or the desktop app or a curl from the command line . Edit just to add a little more info because I think this is where your confusion lies , while the resources for your website are served from your EC 2 instance , you shouldn ' t think of your website and web server as being in the same place . It ' s just a repository where those static resources are stored but the actual running of the website is done by the client ' s browser .