How to Enable/Disable Temporary URL in cPanel WHM Print

  • apache, cPanel/WHM, mod_userdir
  • 1

https://pamirwebhost.com/images/1.jpg

The temporary URL is used when your domain name is in the propagation period, when you’ve just migrated from a different hosting provider or uploaded a test page to see how it looks on the web before you switch DNS.

You can enable/disable using Apache’s mod_userdir option available in WHM.

Apache’s mod_userdir allows users to view their sites by entering their server hostname followed by a tilde(~) and the website owner’s username.
(Example: http://servername.com/~username.)

We will now see how you can enable/disable it from WHM.

STEP 1: Log in into WHM. Make sure you have root access to the server.

STEP 2: Now navigate to “Security Center >> Apache mod_userdir Tweak

https://pamirwebhost.com/images/2.png

https://pamirwebhost.com/images/3.png

STEP 3: To prevent mod_userdir access click the Enable mod_userdir Protection checkbox at the top of the list. You may select any domains that you want to exclude.

https://pamirwebhost.com/images/4.png

STEP 4: Then click Save button at the bottom of the page.


Was this answer helpful?

« Back