Pydio Cells - External URL - WebSocket Closed Connection Issue

Hi,

Installed Pydio Cells on Centos 7: internal IP 192.168.44.104:8080 SSL.
I can access it internal without any problems “https://192:168.44.104”.
Then I setup a Firewall Configuration from External IP to Internal IP Adress to Port 443.
Also made following Apache Configurations:

<VirtualHost 192.168.44.104:443>
ServerName XXXXXXX

May be necessary for API direct accesses

AllowEncodedSlashes On
SSLEngine on

RewriteEngine On
SSLProxyEngine On
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
SSLProxyVerify none

SSLCertificateFile /etc/httpd/conf/ssl.crt/XXXXXX.cer
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/XXXXXXX.key

Proxy WebSocket

RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) wss://192.168.44.104:8080/$1 [P,L]

Finally simple proxy instruction

ProxyPass “/” “https://192.168.44.104:8080/
ProxyPassReverse “/” “https://192.168.44.104:8080/

If I call external IP/ domain. I can access pydio but I have a lot of issues and getting following Error Messages:

Does anyone know what’s the problem?

thanks!

Hi,
here’s how i managed to make it work

CELLS_BIND = 192.168.1.12:7070 and CELLS_EXTERNAL = 192.168.1.12

Then create configuration a file for apache proxy (if used as it is it will work for the proxy and cells both having enabled SSL on their side) with the following:

<IfModule mod_ssl.c>
<VirtualHost *:443>
  ServerName domain.pydio.com
  # May be necessary for API direct accesses
  AllowEncodedSlashes On
  RewriteEngine On
   # Make sure to proxy SSL
  SSLProxyEngine On
  # Disable SSLProxyCheck : maybe necessary if Cells is configured with self_signed
  SSLProxyCheckPeerCN Off
  SSLProxyCheckPeerName Off
  SSLProxyVerify none

  # The Certificate path
    SSLCertificateFile /home/user1/cert/apache.crt
    SSLCertificateKeyFile /home/user1/cert/apache.key

  # Proxy WebSocket
  RewriteCond %{HTTP:Upgrade} =websocket [NC]
  RewriteRule /(.*)           wss://192.168.0.153:8080/$1 [P,L]
   # Finally simple proxy instruction
  ProxyPass "/" "https://192.168.1.12:7070/"
  ProxyPassReverse "/" "https://192.168.1.12:7070/"

</VirtualHost>
</IfModule>
1 Like