Hi guys,
Thanks for creating openlitespeed and making it available for free, it's such a good product!
I have a NextCloud installation on a VPS that is working fine with openlitespeed.
However, I was trying to setup a collabora server, as seen here: https://www.linuxbabe.com/cloud-storage/integrate-collabora-online-server-nextcloud-ubuntu
To setup the server, we need to use reverse proxy.
This is the example for apache:
And this is the example for nginx:
I've read the openlitespeed guide (method 3) https://openlitespeed.org/kb/reverse-proxy-basics/ and I tried this:
Do you guys know why it isn't working? http://collabora.whyprivacy.win/
I've also added it to the http listener:
Sorry to bother, and thanks again. Any idea will help me a lot!
Thanks for creating openlitespeed and making it available for free, it's such a good product!
I have a NextCloud installation on a VPS that is working fine with openlitespeed.
However, I was trying to setup a collabora server, as seen here: https://www.linuxbabe.com/cloud-storage/integrate-collabora-online-server-nextcloud-ubuntu
To setup the server, we need to use reverse proxy.
This is the example for apache:
Code:
<VirtualHost *:80>
ServerName collabora.example.com
Options -Indexes
ErrorLog "/var/log/apache2/collabora_error"
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of Collabora Online
ProxyPass /loleaflet http://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse /loleaflet http://127.0.0.1:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery http://127.0.0.1:9980/hosting/discovery
# Capabilities
ProxyPass /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities
# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" ws://127.0.0.1:9980/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws ws://127.0.0.1:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool http://127.0.0.1:9980/lool
ProxyPassReverse /lool http://127.0.0.1:9980/lool
</VirtualHost>
Code:
server {
listen 80;
listen [::]:80;
server_name collabora.example.com;
error_log /var/log/nginx/collabora.error;
# static files
location ^~ /loleaflet {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# WOPI discovery URL
location ^~ /hosting/discovery {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# Capabilities
location ^~ /hosting/capabilities {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# main websocket
location ~ ^/lool/(.*)/ws$ {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
# download, presentation and image upload
location ~ ^/lool {
proxy_pass http://localhost:9980;
proxy_set_header Host $http_host;
}
# Admin Console websocket
location ^~ /lool/adminws {
proxy_pass http://localhost:9980;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 36000s;
}
}
Do you guys know why it isn't working? http://collabora.whyprivacy.win/
I've also added it to the http listener:
Sorry to bother, and thanks again. Any idea will help me a lot!