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!

Horde problem with nginx installed trought cpnginx

Discussion in 'General Discussion' started by speckados, Apr 13, 2011.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Well.

    On servers with nginx, Cpnginx installed through, we have a problem when accessing via proxy Horde, webmail <domaincustomer>.<tld>

    All work except horde.

    In firefox we have seen that the call to http://webmail.<domaincustomer>.<tld>/horde/index.php server generates a response to a malformed URL.

    http://:8888/horde/login.php

    We have tried to help the developer but his professionalism is simply that it is a known issue (You will not find information about it, and neither wants to provide it), and that is Horde.

    Well, if we disable horde nginx works perfectly, if enabled, does not work.

    Anyone have a similar problem and know? Know where information?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Bucharest
    Same problem. Replace in /usr/local/cpanel/base/horde/config/conf.php line 15
    Code:
    $conf['server']['port'] = $_SERVER['SERVER_PORT']==8081?80:$_SERVER['SERVER_PORT'];
    Mine Nginx port is 8081, if you use 8888 just change the value above. The problem is that this change has to be made again on next update for horde.
     
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I uses 8888 by default install nginx.

    But after put code (and restart cpanel)
    Code:
    $conf['server']['port'] = $_SERVER['SERVER_PORT']==8888?80:$_SERVER['SERVER_PORT'];
    Get a diferent error.

    A LOST OF THANKS FOR YOUR HELP.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    242
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Bucharest
    I'm using Nginx Admin - cPanel nginx automated installer Plugin not cpnginx - maybe that's why is a different port and error.

    In your case, looks like not only the port was wrong (like in mine), but also the hostname, that should be stored in $_SERVER['SERVER_NAME']. Use phpinfo(32) or print_r($_SERVER) inside config.php script to see where is stored the real hostname. Then change the line $conf['server']['name'] according to this.
     
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    325
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I'm using the same.

    Try your say..
     
    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