I'm running two apps on a single EC2 instance:
- Website on Apache running on Port 80
- Java Application on port 8080 which is used by my android app.
The way I access Java application by hitting the URL example.com:8080.
Now I want to move my Java application to java.example.com:8080 without changing the hostname example.com:8443 which is hardcoded inside my android app.
So is it possible for re-routing all requests coming to example.com:8080 to java.example.com:8080?
Thanks in advance for the help!