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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

webmail subsystem files -- not redirecting

Discussion in 'E-mail Discussions' started by joannawc, Aug 28, 2006.

  1. joannawc

    joannawc Registered

    Aug 2, 2006
    Likes Received:
    Trophy Points:

    The situation I have is that when I go to, it doesn't display anything. It changes the URL to -- which is fine -- but displays a blank page, with no errors or anything. I hacked a fix together by editing /usr/local/cpanel/cgi-sys/wredirect.cgi:

    if ($ENV{'HTTPS'} eq "on" || $CPCONF{'alwaysredirecttossl'}) {
       if (${rdhost} ne "") {
          print "Location: https://${rdhost}:${sslport}/horde/login.php\n\n";
       } else {
          print "Location: https://$ENV{'REMOTE_ADDR'}:${sslport}/horde/login.php\n\n";
    } else {
       if (${rdhost} ne "") {
          print "Location: http://${rdhost}:${port}/horde/login.php\n\n";
       } else {
          print "Location: http://$ENV{'REMOTE_ADDR'}:${port}/horde/login.php\n\n";
    (Of course, the changes are every occurrence of "/horde/login.php")

    This works sufficiently to allow the users to log in and use the Horde/IMP system, but every other aspect of the webmail subsystem still doesn't work. For example, the logout page goes to which again displays a blank page.

    I don't want to rely on the hack that I used, particularly since it doesn't fix every aspect of the subsystem. What's more, I want to ensure that any cPanel updates won't remove the fix by overwriting the file I changed.

    Where should I be looking for why this is happening? It's site-wide: all domains are affected, including if I access only with the IP address of the server. Ideas? I'm open to just about everything as an option here, and hoping that someone has seen something like this before. :confused:

Share This Page