Overview
By default, cPanel & WHM restricts Apache from serving websites for domains that are not registered (added) on the server. This setting, known as Allow Unregistered Domains, prevents users from pointing arbitrary domain names to your server's IP address and serving content from another account's virtual host. In some cases — such as during development, testing, or when setting up a site before DNS propagation — you may need to disable this restriction temporarily.
Step 1: Log in to WHM
Log in to your WHM interface as the root user. Access WHM by navigating to https://your-server-ip:2087 in your browser.
Step 2: Open Tweak Settings
In the WHM sidebar, navigate to:
Home » Server Configuration » Tweak Settings
Step 3: Find the Domains Section
Use the search box at the top of the Tweak Settings page, or scroll down to locate the Domains section.
Step 4: Disable the Unregistered Domains Restriction
Find the setting labeled Allow unregistered domains (or similar wording, depending on your cPanel version). Toggle this setting to Off to deny the restriction — meaning Apache will serve requests for domains not registered on the server.
Step 5: Save the Changes
Scroll to the bottom of the page and click Save. The change takes effect immediately; no service restart is required.
Important Notes
- Security implications — Disabling this restriction means any domain pointed to your server's IP address can potentially display content from an account on the server. Only disable this setting when necessary and re-enable it once you are done.
- Development use only — This setting is most commonly disabled during development or when testing a site before updating DNS records. It should not remain disabled in a production environment.
- Not the same as parking/addon domains — This setting is separate from domain parking or addon domain functionality. To properly host a domain, add it through cPanel's Parked Domains or Addon Domains interface instead.
Troubleshooting
- Site still not loading — If you have disabled the restriction and the site is still not accessible, check that the domain's DNS A record points to the correct server IP. Also verify that the virtual host configuration in Apache includes a
ServerAliasor that the domain matches the account's primary domain. - Setting keeps reverting — If you are in a configuration cluster, the master server may be overwriting this setting. Ensure the change is made on the master server.
For the official cPanel documentation, visit the Tweak Settings page.