The "app" consists of a maven built java back-end which utilizes the maven build of apache spark ("http://sparkjava.com/"). To my understanding, the spark API initiates a Jetty server which listens on a specified port for GET / POST requests. It then either processes the data sent in a POST request or simply returns the html/css/js page for a GET request.
When I said "the port 2000 is lost", I meant that if I go in to the app through the proxy /app and attempt to issue GET / POST commands via the jQuery front end interface, google's developer console shows the remote address as my_ip:(80, 443) and the request URL is simply my_hostname/command. Likewise, the origin and the host are incorrect.
If HTTP_HOST is the "Host:" shown in google dev console "Request Headers", the app is not setting it correctly on /app (it is "my_hostname" rather than "my_hostname:2000").If HTTP_HOST is not what's said above, then how do I check what it is?