Specifically I am using Apache 2 and redirecting port 80 to a Tomcat installation. Within tomcat I can setup multiple applications and they are referenced as so:
I have one static IP and i'd like to be able to host multiple sites on either tomcat or apache depending on the app architecture but how do I point my domain name to my static ip and the websites specific subdirectory? I am using domain.com to manage my domains and it seems I can only point to an ip address (no adding of a subdirectory allowed).
Should I be using virtual hosts as described here: apache rewrite to assign folders to domains
Does that somehow determine the calling domain name and route it to the correct directory regardless of the fact that the same ip is using on multiple domain names?