So I have an application the is bound to localhost:3080. When I locally visit "localhost:3080" the application displays in the browser.
I also have an apache server setup listening to the publicIP:8080.
When I visit the publicIP from the outside world, publicIP:8080 loads up.
How can I have it so that when I visit publicIP:8080, the contents of localhost:3080 are displayed onto it?
Is there a way to forward the contents of localhost:3080 to publicIP:8080?
I assume your application at localhost:3080 acts as a http server. Then you would simply
Generally its better to use ProxyPass to handle only special locations
Then if you request
http://publicIP:8080/myCoolApp/XYZ
your application @3080 will receive the request on URL/XYZ
.