Submitted by impire on Tue, 11/29/2011 - 02:51
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
Submitted by andreychek on Tue, 11/29/2011 - 08:29 Comment #1
Howdy -- those servers that you restored -- did they come from a different server, perhaps one not using NAT?
Submitted by impire on Tue, 11/29/2011 - 19:35 Comment #2
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.
Submitted by andreychek on Tue, 11/29/2011 - 19:52 Comment #3
If you go into System Settings -> Re-Check Config, does it find any problems?
Submitted by impire on Tue, 11/29/2011 - 20:45 Comment #4
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 is ready for use by Virtualmin.
Any suggestion?
Submitted by andreychek on Tue, 11/29/2011 - 21:00 Comment #5
Okay, so the next questions are --
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.
What IP address is it adding into Apache? You can determine that by running this command:
grep 'VirtualHost' /etc/apache2/sites-enabled/*
Submitted by impire on Wed, 11/30/2011 - 01:03 Comment #6
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.
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:~#
Submitted by andreychek on Wed, 11/30/2011 - 09:15 Comment #7
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/*