I had developed a simple json api. There I used java as the programming language jersy for REST implementation Apache Tomcat 7 for container Apache2 to redirect requests to Tomcat 7 When I do a curl as "curl http://my-domain/my-app/url" it worked fine and produced me desired results. Then I developed the front-end of the app and hosted it in a separate server. Now, my api and th