The problem is when you attempt to visit “http://example.com/cpanel” and you get the following message or similar:
1 |
The requested URL /cpanel was not found on this server. |
To fix this, you can add following in /usr/local/apache/conf/httpd.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
ErrorDocument 400 /400.shtml ErrorDocument 401 /401.shtml ErrorDocument 403 /403.shtml ErrorDocument 404 /404.shtml ErrorDocument 500 /500.shtml ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/ Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/ Alias /java-sys/ /usr/local/cpanel/java-sys/ Alias /img-sys/ /usr/local/cpanel/img-sys/ Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/ Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/ ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/ ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/ Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/ Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/ Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/ |
Add this anywhere in the httpd.conf, outside of any <VirtualHost> tags.
Restart apache (service httpd restart)
And Chill
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.