netarus

Well-Known Member
Oct 27, 2002
105
0
166
Anyone know why when trying to access webmail the following works:

http://www.MYDOMAIN.com/webmail/

However, the following doesn't:

http://www.MYDOMAIN.com/webmail

Shouldn't that automatically resolve to the directory?
 

taivu

Well-Known Member
Nov 22, 2001
65
0
306
No, because the ScriptAliasMatch is set with the trailing slash in httpd.conf:

ScriptAliasMatch /webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
 

netarus

Well-Known Member
Oct 27, 2002
105
0
166
In your httpd.conf, directly under:

ScriptAliasMatch /webmail/(.*) /usr/local/cpanel/base/wredirect.cgi

Add the following:

ScriptAliasMatch /webmail /usr/local/cpanel/base/wredirect.cgi

Then Restart apache:

/usr/local/apache/bin/apachectl restart

------------------------------

The above answer was found in the unofficial cPanel IRC Chat. Special thanks goes to Shaun2222 for this answer!