In a cPanel/WHM server, when you create a new account When you create a new account, while awaiting the propagation dns of your new domain, you can access your domain temporarily – this can be achieved by
1 |
http://your-server-ip/~cPanel-username/ |
But, when tried this it shows:
1 2 3 4 |
404 page The server can not find the requested page: Server-IP/~cPanel-username/ (port 80) Please forward this error screen to server.hostname.com’s WebMaster. |
Feel free to check Apache mod_userdir Tweak in CPanel / WHM
The fix for this is, login to WHM.
Under Security > Security center > Apache mod_userdir Tweak
You may see the checkbox (Enable mod_userdir Protection) ticked, uncheck it and save.
Now, try accessing the temporary URL. It should work.