Restore virtual servers to shared IP encountered problems.

Hello,

I restored 3 virtual servers using a shared IP. Two questions:

1) The first server is resolving correctly. The other two servers keep resolving to the first server. I've attempted several times. Same problem. Please advise?

2) These servers uses internal NAT IP address. During the restore, is there a way to specify one public IP address for these servers? It will be helpful when we restore large number of virtual servers. It could be a daunting task of having to go back and edit the public IP of say about 50 virtual servers.

Thanks in advance for your help.

Status: 
Active

Comments

Howdy -- those servers that you restored -- did they come from a different server, perhaps one not using NAT?

Hi,

The virtual servers are from a different server. That server also using NAT and shared IP. This seems like Apache is not adding in the header properly. Any idea?

On a separate note, during restore Virtualmin doesn't give an option specify external IP address for these servers. It default to the default external IP of the main host. Is there a way to get around it? It's quite a daunting task to manually edit the public IP address for about 217 virtual servers after the restore. Thanks.

If you go into System Settings -> Re-Check Config, does it find any problems?

Hello,

This is what I got:

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

Your system has 31.24 GB of memory, which is at or above the Virtualmin recommended limit of 256 MB.

Apache is installed.

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPd is installed.

Logrotate is installed.

Plugin AWstats reporting is installed OK.

Plugin Protected web directories is installed OK.

Using network interface eth3 for virtual IPs.

IPv6 addresses are available, using interface eth0.

Default IP address for virtual servers is 192.168.1.64

External IP address for DNS records is set to 67.32.15.64, but the detected external address is actually 67.32.15.125. This may cause DNS records for Virtualmin domains to point to the wrong system.

Disk quotas have been disabled in the module configuration.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

Any suggestion?

Okay, so the next questions are --

  1. What public IP address is it being setup with? That is, what IP is setup in the DNS zones for your domains? You can determine that in Server Configuration -> DNS Records.

  2. What IP address is it adding into Apache? You can determine that by running this command:

grep 'VirtualHost' /etc/apache2/sites-enabled/*

  1. The Server Configuration -> DNS Records is not available. We are not using local DNS. The BIND DNS feature has been disabled from System Settings -> Features and Plugins.

  2. The result for "grep 'VirtualHost' /etc/apache2/sites-enabled/*":

Linux c 2.6.32-5-686-bigmem #1 SMP Mon Oct 3 05:03:32 UTC 2011 i686

The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Nov 13 15:14:44 2011 from 192.168.1.130 root@hostvm:~# grep 'VirtualHost' /etc/apache2/sites-enabled/* /etc/apache2/sites-enabled/000-default: /etc/apache2/sites-enabled/000-default: /etc/apache2/sites-enabled/domain1.com.conf: /etc/apache2/sites-enabled/domain1.com.conf: /etc/apache2/sites-enabled/domain1.com.conf: /etc/apache2/sites-enabled/domain1.com.conf: /etc/apache2/sites-enabled/DOMAIN2.com.conf: /etc/apache2/sites-enabled/DOMAIN2.com.conf: /etc/apache2/sites-enabled/DOMAIN3.com.conf: /etc/apache2/sites-enabled/DOMAIN3.com.conf: root@hostvm:~#

Okay, if you aren't using DNS, that's even simpler then -- that means you don't need the external IP at all.

So, the only thing we need to do is determine what IP is being added into Apache.

I'm confused as to the output grep is showing you there, as it should be showing an IP address in addition to those files.

I have a different command that will hopefully show us the IP address it's using in there:

head -1 /etc/apache2/sites-enabled/*