My current environment uses the following construct http://xxx.xx.xx.xx/sitename and http://xxx.xx.xx.xx:port number/sitename for two separate sites. It also uses XAMPP for the wordpress environment and Tomcat and MySQL for the Java environment.
What I would like to do is create a server side redirect for each site so that I can use the same ip for both sites.
My ultimate goal is to be able to take advantage of the DNS entry on GoDaddy.com to make my sites public e.g. www.mysite.com instead of http://xxx.xx.xx:xx/mysite