Here's my setup: Zoneedit Nameservers point to External IP, No DNS Configs in ISPCONFIG Ubuntu 10.04 running ISPConfig 3 on a single box VBoxHeadless running Ubuntu 10.10 w/ new ISPConfig install (Internal IP) mydomain.net, www, mail, and the like point to the IP of the non-virtual ISPConfig install and work perfectly. I want virtual.mydomain.net to point to IP of the non-virtual ISPConfig, but want to redirect it to the IP of the VBox ISPCONFIG. When I tried creating rules inside the DNS portion of ISPConfig, virtual.mydomain.net would simply point to the root folder of the non-virtual server. How do I recirect incoming requests for virtual.mydomain.net to the IP of the VBox ISPConfig setup? {hope that makes sense... I know it's a bit cryptic}
This redirect will not work as the apache on the virtual server does not know which page it shall be deliver. To access the correct page on apache, you have to access it by domain name and not IP, so if you redirect request to the IP and not domain name of the virtual server, apache can not deliver the correct site. IInstead of redirecting the page in ispconfig, change the router settings and point port 80 from your router to the IP of the virtual server instead.
Hmmm.... tried that. It works, but only for requests coming from outside the network. I use NAT for everything inside, not a router, so all inside traffic redirects to the non-virtual server.
Make sure that you change the IP address of the domain of that website to point to the IP of the virtual machine.