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.

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:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: 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?
     
  2. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    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:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: 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.
     
  4. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    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:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
Loading...

Share This Page