Control Panel (cPanel/WHM)

How do I preview my domain in cPanel/WHM?

There are two common ways to preview your domain before releasing it to the world at large.


  1. Log into WHM.
  2. Navigate to the Security Center and click on Apache mod_userdir Tweak.
  3. Uncheck Enable mod_userdir Protection and click Save.

You will now be able to preview your domains by going to the following URL: http://YourIPAddress/~username (where “YourIPAddress” is written in the XXX.XXX.XXX.XXX format and “username” is your domain’s cPanel username).

Note: ServInt recommends enabling mod_userdir protection after you are finished.

This first method is not 100% reliable and may not work properly depending on your sites code and your server’s php configuration.

Modifying the hosts file

The Second method is to modify your local computer’s hosts file in order to point DNS for the domain to your new server for only your computer. This method is a bit more in-depth, but is the preferred method to preview sites as it will display the site as if it already resolved properly to your server. Full directions to modify your computer’s hosts file can be found here.

Photo by Julia Manzerova

Find out more about ServInt solutions

Starting at $25

  • Hosting Advice
  • Computer World
  • Ars Technica

  • The New York Times
  • The Seattle Times
  • Bloomberg
  • The Hill

To engage with the ServInt Sales Team use the following chat icon. Normal sales hours are Monday-Friday 9am-5pm EST but feel free to leave a message and we will follow up as soon as possible.

Sales Chat

To engage with the ServInt Support Team you must be logged into our Customer Portal for identity verification and have a ticket opened about your request or there will only be limited support offered.

Support Chat