The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Webmail

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

  1. netarus

    netarus Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    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:
    6
    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:
    16
    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:
    16
    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:
    16
    Location:
    San Clemente, Ca
    np, glad i could help :)
     
Loading...

Share This Page