I recently set up an Ubuntu 12 server (on Rackspace Cloud's next-gen servers). I will be serving about 10 small web apps on this server. Due to how these apps were built, the PHP app need to run on Apache and the Rails apps need to run on Nginx. Rackspace will not allow multiple IPs on a single server. Is it possible to run apache2 and nginx on the same server using the same IP address both on port 80?
The only information I have found involves using nginx to proxy requests to apache for the apache domains. The proxy information I have found mentions only static pages server directly by nginx.
How can I set up my Ubuntu server to run apache2 and nginx on the same server with only 1 IP address?