I have a tomcat7 server hosting my app. I've got port forwarding set up with iptables so right now you can access the app like so:
http://ip-address-of-server/appname
I've also set up the domain routing so you can also access the app at:
http://appname.com/appname
Now I'm stuck because I don't know how to map http://appname.com
to http://appname.com/appname
.
All I could find is that I need a second web server (Apache) to forward (proxy? rewrite? I'm unclear on the proper terminology) the requests to tomcat, as per this article.
Having two web servers running doesn't seem right, but I can't find any other way of achieving this. I suppose my question is: Is this right? Having two web servers running for one app? Is there a better way?
Thanks for your time!