How to redirect http requests to a service running in other port

I have a suggestion for you: You can use Apache for proxying (clustering) the webpage. For example, you enter http://example.com/tomcat and Apache will pass the request to http://example.com:8080/. It is easy to do:

When you defined a new VirtualHost block in the Apache configuration file, then add these lines to it (make sure you have mod_proxy enabled):

<Proxy balancer://custom-balancer-name>
    BalancerMember http://localhost:8080 #Enter the address of the second machine or service
</Proxy>

ProxyPass        /tomcat balancer://custom-balancer-name
ProxyReversePass /tomcat balancer://custom-balancer-name

Hope you find my answer helpful.