Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Webmail

Discussion in 'E-mail Discussion' started by netarus, Nov 16, 2002.

  1. netarus

    netarus Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. taivu

    taivu Well-Known Member

    Joined:
    Nov 22, 2001
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    306
    No, because the ScriptAliasMatch is set with the trailing slash in httpd.conf:

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

    netarus Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    How do we resolve this so /webmail and /webmail work? :)
     
  4. netarus

    netarus Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    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!
     
  5. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    San Clemente, Ca
    np, glad i could help :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice