For various connectivity and security reasons, Apache serve administrators may want to implement dynamic domain name servers. With an active IP configuration, servers can utilize various hostnames, which allows for more flexible connection settings.
Often times, administrators can work with a script that discovers and registers IP addresses in real time, helping to more effectively route internet traffic. As one way to scale large web serve connections, Apache servers with a dynamic IP setting can rely upon redundant backup servers and can more effectively cache data in a regional or local setting.
Especially useful for localized networks or intranets, Dynamic DNS settings can help you setup a virtual host connection on Apache, as well as a local network or shared hosting service. A common application of Apache dynamic DNS is used for web hosting providers who have to allocate IP resources across a variety of hosting clients through Virtual Host settings. In fact, offering Dynamic DNS offers a more effective way to produce a test server based in a broadband environment.
Often times you’ll want to begin by testing the direct IP address to determine whether a specific port allows for connections, which can be done by pinging the IP address at a specific port or trying to connect to the IP address port through a web browser. Sometimes, the initial (default) port setting may fail, requiring users to update their settings within httpd.conf:
Listen [Port]
After determining your port is properly configured you can begin setting up your own dynamic DNS. To start you’ll need to register a domain name for external connections to link to your dynamic DNS. After registering a domain name (at a company such as Register.com or GoDaddy), you can then update the DNS settings of your domain to a dynamic DNS provider, and begin configuring the dynamic DNS client on your Apache server.
By working with a third party dynamic DNS provider, you can then update your core Apache settings to reflect this new information:
NameVirtualHost *:80<VirtualHost *:80>ServerName example.dyndns.org
DocumentRoot /directory/files
</VirtualHost>
<VirtualHost *:80>ServerName example1.dyndns.org
DocumentRoot /directory1/files
</VirtualHost>
ServerAlias *.example.dyndns.org
With these settings you can run multiple independent domain names or variants on a single Apache server with unique IP addresses. This can be particularly useful for search engine optimization or regional connection purposes, allowing users to use a central server for international or sub-brand content.
As an example, a company may want to setup dynamic hosting with unique IPs for each market so that en.company.com provides English content from a North American IP address while fr.company.com delivers content from a French server. Documentation from search engines confirms IP server location does impact both load times, as well as search engine rankings. Since search engines and users perceive documents according to the originating IP, you can better target core markets and can add impressive flexibility to your server.
1. Response by : Tomas on Dec 22, 2010 at 6:26 pm
Hi
I am a newbie so please be patient with me. I read this and i having a problem to set up a multiple host with my existing websites. I create a virtualhost but for me it is look like that virtualhost is still using the documentroot folder. I am having 2 registered domain and i want to run them both seperatly at the same IP. i am running WINDOWS 2003 SERVER R2 with WAMPSERVER. I try ISS 6 as well but ther is some problem for me with CGI … so i gave up this option.
If u can helpme or provide me with any good support wich will help me to sort my problem i will be very happy man.
| 1 | Hostpapa - £ 1.95 |
| 2 | UK2NET - £ 3.95 |
| 3 | Clook - £ 5.00 |
| 4 | WebHosting.uk.com - £2.29 |
| 5 | Just Host - £3.45 |
| 6 | 1and1 - £ 2.49 |
| 7 | Webfusion - £3.95 |
| 8 | FastVision - £1.49 |
| 9 | Heart Internet - £2.49 |
| 10 | FastHosts - £ 3.49 |