Try the fastest and simplest way to install ONLYOFFICE

Allowing websocket for Document Server on Apache proxy

IIS, Apache

Allowing websocket for Document Server on Apache proxy

Postby srivinay » Tue Apr 04, 2017 2:05 pm

Hi,

We have been trying to make our Document Server work behind an Apache Proxy server. We faced an error stating "WebSocket connection to 'wss://document-server/doc/-731460377/c/244/okvazqnd/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400".
As a work around we used " ProxyPassMatch "^/(.*\websocket)$" "ws://document-server/$1" " and it started working.
Is websocket the correct and only identifier for ws traffic?
srivinay
 
Posts: 6
Joined: Mon Feb 27, 2017 4:20 pm

Re: Allowing websocket for Document Server on Apache proxy

Postby Maxim » Wed Apr 05, 2017 12:39 pm

Hello srivinay!
I cannot say about Apache, we use nginx...but for Document Server the websocket in URL is correct and only identifier for ws traffic.
Maxim
 
Posts: 1011
Joined: Tue Oct 11, 2016 2:34 pm

Re: Allowing websocket for Document Server on Apache proxy

Postby srivinay » Thu Apr 06, 2017 4:53 am

Thanks pal
srivinay
 
Posts: 6
Joined: Mon Feb 27, 2017 4:20 pm

Re: Allowing websocket for Document Server on Apache proxy

Postby Maxim » Thu Apr 06, 2017 6:42 am

Hello srivinay!
You are always welcome!
Maxim
 
Posts: 1011
Joined: Tue Oct 11, 2016 2:34 pm


Return to Web server configuration

Who is online

Users browsing this forum: No registered users and 3 guests