HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   ISPConfig forward to VirtualBox ISPConfig (http://www.howtoforge.com/forums/showthread.php?t=51837)

Rescue9 10th March 2011 16:40

ISPConfig forward to VirtualBox ISPConfig
 
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}

till 10th March 2011 16:50

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.

Rescue9 10th March 2011 17:31

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.

till 11th March 2011 14:25

Make sure that you change the IP address of the domain of that website to point to the IP of the virtual machine.


All times are GMT +2. The time now is 05:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.