Submitted by 123pc on Sat, 07/07/2018 - 16:20
Ubuntu 18.04
Anyone knows how to make z-push work with egroupware? i cant figure out the steps for the autodiscover settings eventually i got stuck,
zpush logging the following:
07/07/2018 14:12:16 [ 2634] [FATAL] [unknown] FatalException: Requested the Z-Push URL without the required GET parameters - code: 0 - file: /home/in-cloud/public_html/egroup/activesync/vendor/z-push/z-push/src/index.php:78 07/07/2018 14:12:16 [ 2634] [FATAL] [unknown] Exception: (FatalException) - Requested the Z-Push URL without the required GET parameters
this was tested with the microsoft activesync testing tool.
My mobile devices do not even bother connecting to the server, some how.
any help would be appreciated.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Sat, 07/07/2018 - 16:25 Comment #1
Howdy -- thanks for contacting us!
I unfortunately don't know much about using z-push, though I do see after some Googling that there can be some issues with redirects. You could always ensure that there aren't any redirects occurring with that URL.
Also, I see that in some cases with some software, there can be trouble using z-push with CGI/FCGID mode. You might try switching to mod_php just to see if it helps, but I ran into this suggestion here which explained how to setup a redirect that can help solve z-push issues:
https://forum.kopano.io/topic/275/z-push-web-hosted-with-cpanel-don-t-work
Submitted by 123pc on Sun, 07/08/2018 - 17:18 Comment #2
Nice one, "pushed" me to the right direction.
you have to add an .htaccess file in the active sync folder of egroupware. with the folowing rule:
RewriteEngine on RewriteRule .* - [E=HTTP_MS_ASPROTOCOLVERSION:%{HTTP:Ms-Asprotocolversion}] RewriteRule .* - [E=HTTP_X_MS_POLICYKEY:%{HTTP:X-Ms-Policykey}] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
after that in a separate .htacces file on the root of your webfolder. you add:
RewriteEngine on RewriteBase /
RewriteRule Microsoft-Server-ActiveSync(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule Autodiscover/Autodiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule AutoDiscover/AutoDiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}] RewriteRule autodiscover/autodiscover.xml(.) /egroup/activesync/index.php$1 [E=ACTIVESYNC:true,E=REMOTE_USER:%{HTTP:Authorization}]
and that is basically it.
After this it started working, i have still separate issue with outlook, with an fatal error. But it connects also so it is not related to this.
Submitted by andreychek on Mon, 07/09/2018 - 09:01 Comment #3
Excellent, I'm glad to hear this is working for you now, thanks for letting us know how you fixed it!
Submitted by IssueBot on Fri, 07/27/2018 - 09:42 Comment #5
Automatically closed - issue fixed for 2 weeks with no activity.