HOW TO: Change domain IPs without loss of availability during propagation

IT_Architect

Verified User
Joined
Feb 27, 2006
Messages
1,080
This procedure allows you to change domain IPs without loss of availability normally experienced during propagation time by having Apache to respond to both the new and the old IP.

- Open the current /usr/local/directadmin/data/users/<username>httpd.conf with a text editor and copy the current vhost information.
- Open /etc/httpd/conf/httpd-includes.conf. Make a section at the end of the file like this:

#############################
# Temporary changes: Delete after 00/00/00
#############################

Paste in the current vhost information here

#############################
# End Temporary changes: Delete after 00/00/00
#############################
and save

- Login into DA as admin, add the new IP address, and give to the reseller for the domain.
- Login into DA as the reseller, change the IP for the user.
- Set a reminder in your planner for 72 hours from now to delete the temporary changes in /etc/httpd/conf/httpd-includes.conf.

Alternatively you could make an httpd-includes.temp to include in the httpd-includes.conf and an empty file named httpd-includes.clear. Then set up a cron to copy httpd-includes.clear over httpd-includes.temp in two days and restart Apache.
 
Last edited:
It might take more than 2 days for all isp's to clear their cache. I know this from experience. Not all isp's follow the rules.
 
It might take more than 2 days for all isp's to clear their cache. I know this from experience. Not all isp's follow the rules.
True. Changed to 72 hours as this is the max I've seen posted around the web. I know that won't cover everything. We had one office in Vancouver where it would take a week or a telephone call.
 
Back
Top