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.
- 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: