404

Error: 404 while trying to reach temporary URL on Cpanel.

Posted on Updated on

Here is my problem that getting 404 error when I am trying to access temporary URL on Cpanel server. The url looks like this http://111.222.333.444/~domainusername/

Error Logs:

root@server2 [~]#tail -f /usr/local/apache/logs/error_log
[Thu May 15 14:21:23 2008] [error] [client 12.34.45.203] File does not exist: /usr/local/apache/htdocs/~username, referer: http://12.13.14.15:2086/scripts2/lis...rtorder=domain
[Thu May 15 14:21:23 2008] [error] [client 12.34.45.203] File does not exist: /usr/local/apache/htdocs/~username, referer: http://12.13.14.15/~domainusername/

This will happens while mod_userdir protection is enabled for the user nobody (DefaultHost) and it should be disabled using WHM or edit the below entry on httpd.conf

UserDir disabled
# To enable enter domainusername seperated by space
UserDir enabled user1 user2 user3