Hi,
I’m trying to get OnlyOffice working on my Seafile installation but I can’t get it working.
I am running Seafile on Linux (OpenMediaVault) with Apache and this is working perfectly (https with LetsEncrypt certificate). Seafile and Apache installed normally, no docker.
Following these instructions I installed docker on my machine and then got OnlyOffice running in docker. http://192.168.2.58:88 shows the OnlyOffice welcome screen so basically OO is working as far as I can say (192.168.2.58 is my server local IP).
I modified my Apache configuration to make OO available as a subfolder and this is my conf file:
seafile.conf
<IfModule mod_ssl.c>
NameVirtualHost _default_:443
<VirtualHost _default_:443>
ServerAdmin ms@mydomain.de
ServerName cloud.mydomain.de
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mydomain-0002/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain-0002/privkey.pem
Alias /seafmedia /opt/seafile/seafile-server-latest/seahub/media
<Location /seafmedia>
ProxyPass !
Require all granted
</Location>
RewriteEngine On
#
# seafile httpserver
#
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
#
# seahub
#
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RequestHeader set X-Forwarded-Proto 'https' env=HTTPS
SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
#
# onlyofficeds
#
Define VPATH /onlyofficeds
Define DS_ADDRESS cloud.mydomain.de:88
<Location ${VPATH}>
Require all granted
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
RequestHeader edit X-Forwarded-Host (.*) $1${VPATH}
ProxyAddHeaders Off
ProxyPass "http://${DS_ADDRESS}/"
ProxyPassReverse "http://${DS_ADDRESS}/"
</Location>
</VirtualHost>
</IfModule>
Now when I open the link https://cloud.mydomain.de/onlyofficeds instead of the OO welcome screen I get an error message “Bad request (400)”
Anyone has an idea what the problem might be?
thanks,
Matt