Man In The Middle Attack – The Rising Threat to Internet Users
Online security has become a significant topic for all online businesses today. Though technology gear…
When you’re hosting multiple websites on the same server using name-based virtual hosting, your server needs to map each site to an IP address. By default, Apache assigns the first IP available, but sometimes you may want to change the default IP address for name-based sites, maybe due to SSL requirements, DNS changes, or server configuration updates.
Name-based hosting allows multiple websites to share a single IP address. The web server uses the domain name in the HTTP request to decide which site to serve.
Saves IP addresses when hosting many domains.
Useful for shared hosting environments.
Easy to manage multiple websites from one server.
This guide explains the step-by-step process to update the default IP address for name-based sites on your server.
Open the name-based IP address configuration file:
nano /etc/virtualhosting/namebased_ip_addrs
Update the IP address to your desired new IP.
Edit the “/etc/hosts” file and add or update the entries for your domains with the new IP address.
Open the Apache configuration file:
“nano /etc/httpd/conf/httpd.conf”
Search for NameVirtualHost and update the IP accordingly.
If you are using a CMS like WordPress with phpMyAdmin, update the configuration file:
“nano /var/www/html/MyAdmin/wp.config.inc.php”
Edit the file that detects IP changes:
“nano /etc/detectchanges/IP”
After making changes, run the following command to detect and apply updates:
“/usr/local/bin/NBDetectchanges”
Finally, resave all the name-based sites to ensure changes are applied.
Explore more hosting insights, tips and industry updates.
Online security has become a significant topic for all online businesses today. Though technology gear…
Is there any way to disable Horde or other webmail applications for users who don’t…
When exploring VPS hosting or server setups, you’ll often come across two terms: Physical RAM…