After years of using managed servers I'm finally getting my feet wet with setting up a webserver (using rackspace cloud). Here is how I have things setup:
Server A (hosted with servint.com, manages DNS for example.com) Server B (rackspace cloud server, I want to serve apps for example.com from here)
I've added an A record on Server A for app.example.com to point to Server B's ip address. This works great! Now I also have phpMyAdmin installed on Server B. If I go to Server B's phpmyadmin URL like "XX.XX.XX.XX/phpmyadmin", it loads just fine. What I would like to do is configure another A record on Server A like "phpadmin.example.com" which will point to Server B. I have not yet set up a VirtualHost for that server name, so I get the default sites-enabled.
How do I tell apache that "phpadmin.example.com" should load "phpadmin.example.com/phpmyadmin"? A job for mod rewrite? Something in the default virtual host?
Any help is much appreciated!