[horde] Redirect loop

Joris Bolsens Joris at linux.com
Sat Mar 21 18:10:30 UTC 2015


Hello all,

I just finished installing Horde following the instructions on the
debian wiki[1] (this is linked by the horde wiki for debian)
However, now whenever I try to log in, I get a redirect loop on
/services/portal/ . I have made sure that third party cookies are
accepted by chrome, and made sure the cookie path was properly set in
the conf file (it is set to /).
I have tried using both chrome and iceweasel, with same issue.

my syslog shows successful login:
---
Mar 21 18:04:11 hawk961 HORDE: [horde] Login success for me at mydomain.com
to horde (my.ip.addr) [pid 30405 on line 164 of
"/usr/share/horde/login.php"]
Mar 21 18:04:11 hawk961 HORDE: [imp] Login success for me at mydomain.com
(my.ip.addr) to {imap://localhost:993/} [pid 30404 on line 157 of
"/usr/share/horde/imp/lib/Auth.php"]

NGINX access.log shows tons of:
---
"GET /services/portal/ HTTP/1.1" 302 31 "http://mail.mydomain.com/login.php"

error.log is empty

and finally my nginx config for mail.mydomain.com:
---
server {
    server_name mail.mydomain.com;
    root /usr/share/horde;
    index  index.php;

    location / {
        try_files $uri /index.php;
    }

    location ~ \.php {
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_param PATH_INFO $fastcgi_path_info;
      fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      #fastcgi_param HTTPS $php_https;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
    }

    location /Microsoft-Server-ActiveSync {
      alias /var/www/horde/rpc.php;
      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      fastcgi_param PATH_INFO $fastcgi_path_info;
      fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      #fastcgi_param HTTPS $php_https;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
    }
}
---

[1]: https://wiki.debian.org/Horde

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.horde.org/archives/horde/attachments/20150321/4c122fec/attachment.bin>


More information about the horde mailing list