<div dir="ltr"><div>Thanks, yes, it works now!</div><div><br></div><div>I made a mistake in Nginx configuration, the rewrite URL was done wrong.</div><div><br></div><div>For anyone with a similar problem, the working Nginx configuration for Chwala + Collabora is this (this is for Kolab deployed entirely in same domain, but the difference for the subdomains is minimal and obvious):</div><div><br></div><div> location /chwala {<br> index index.php;<br> alias /usr/share/chwala/public_html;<br> rewrite /chwala/api/wopi/(.*)$ /chwala/api/index.php?wopi=1&method=$1;<br> rewrite /chwala/api/document/(.*)$ /chwala/api/index.php?method=document&id=$1;<br><br> client_max_body_size 100M; # set maximum upload size<br><br> # enable php<br> location ~ .php$ {<br> include fastcgi_params;<br> fastcgi_param HTTPS on;<br> fastcgi_pass unix:/var/run/php-fpm/mail.ifi-experience.com_chwala.sock;<br> fastcgi_param SCRIPT_FILENAME $request_filename;<br> # Without this, PHPSESSION is replaced by webadmin-api X-Session-Token<br> fastcgi_param PHP_VALUE "session.auto_start=0<br> session.use_cookies=0";<br> fastcgi_pass_header X-Session-Token;<br> }</div><div><br></div><div>Thanks again!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 27, 2019 at 7:01 AM Aleksander Machniak <<a href="mailto:machniak@kolabsys.com">machniak@kolabsys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 9/27/19 3:04 AM, Milan Petrovic wrote:<br>
> Sep 27 02:30:40 <a href="http://mail.mydomain.com" rel="noreferrer" target="_blank">mail.mydomain.com</a> <<a href="http://mail.mydomain.com" rel="noreferrer" target="_blank">http://mail.mydomain.com</a>> loolwsd[7108]:<br>
> wsd-07108-11171 2019-09-27 00:30:40.149310 [ docbroker_012 ] ERR WOPI::CheckFileInfo<br>
> failed with 404 Not Found| wsd/Storage.cpp:495<br>
<br>
404 suggests that it might be problem with chwala or nginx setup for chwala.<br>
<br>
> Sep 27 02:30:40 <a href="http://mail.mydomain.com" rel="noreferrer" target="_blank">mail.mydomain.com</a> <<a href="http://mail.mydomain.com" rel="noreferrer" target="_blank">http://mail.mydomain.com</a>> loolwsd[7108]:<br>
> wsd-07108-11171 2019-09-27 00:30:40.149471 [ docbroker_012 ] ERR Failed to add session to<br>
> [/chwala/api/wopi/files/w-OEA7dCZ70b5mV7XW] with URI<br>
> [<a href="https://mail.mydomain.com/chwala/api/wopi/files/w-OEA7dCZ70b5mV7XW?access_token=qj9F61I8tA7PRPmsd0Vi5gIGTj&access_token_ttl=1569555038000&permission=edit" rel="noreferrer" target="_blank">https://mail.mydomain.com/chwala/api/wopi/files/w-OEA7dCZ70b5mV7XW?access_token=qj9F61I8tA7PRPmsd0Vi5gIGTj&access_token_ttl=1569555038000&permission=edit</a>]:<br>
<br>
The url looks fine.<br>
<br>
-- <br>
Aleksander Machniak<br>
Senior Software Engineer<br>
Kolab Systems AG: <a href="https://kolabsystems.com" rel="noreferrer" target="_blank">https://kolabsystems.com</a><br>
PGP: 19359DC1<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.kolab.org" target="_blank">users@lists.kolab.org</a><br>
<a href="https://lists.kolab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.kolab.org/mailman/listinfo/users</a></blockquote></div>