Horde problem with nginx installed trought cpnginx

speckados

Well-Known Member
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?
 

d_t

Well-Known Member
Sep 20, 2003
245
3
168
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.
 

speckados

Well-Known Member
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.
 

d_t

Well-Known Member
Sep 20, 2003
245
3
168
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.