In hosting environments managed with Ensim control panel, websites can either be configured with a dedicated IP address (IP-based) or share a single IP address with other domains (name-based).
Most modern hosting setups use name-based sites because they save IP resources and make managing multiple domains easier. If you currently have an IP-based site and want to switch it to name-based, Ensim allows you to do this quickly using a simple shell command.
What is the Difference Between IP-Based and Name-Based Sites?
-
IP-Based Site: Each website has its own dedicated IP address.
-
Name-Based Site: Multiple websites share a single IP, and the server identifies them based on the domain name in the request.
When to Convert?
-
If you are running out of IPs.
-
When moving sites to a shared hosting setup.
-
To make server management easier and reduce unnecessary IP usage.
Steps to Convert an IP-Based Site to Name-Based in Ensim
To convert an IP-based site to name name-based site in ensim run the following command as a root user onthe shell.
1. Run the EditVirtDomain Command
Use the following syntax:
“EditVirtDomain -c ipinfo,namebased=1,ipaddrs=[] domain_name”
Replace “domain_name” with the actual domain you want to convert.
2. Example Command
For example, if you want to convert mydomain.com:
“EditVirtDomain -c ipinfo,namebased=1,ipaddrs=[] mydomain.com“
3. Verify the Conversion
After running the command, check the domain’s configuration in Ensim.
Ensure the site is listed as name-based and working correctly.