Hi,
I have Nextcloud running via Apache on a server visible to WAN (cloud.XXX.com). Let’s call this server MIDGAR
I have installed OnlyOffice with Nginx on a second server on the same LAN, but clearly not visible to WAN. Let’s call this server MIDEEL.
I have been successful in using ProxyPass on Apache on MIDGAR to send traffic from office.XXX.com to MIDEEL with SSL authentication on MIDGAR using Let’s Encrypt.
office.XXX.com.conf on MIDGAR:
<VirtualHost *:80>
ServerName office.XXX.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =office.XXX.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName office.XXX.com
ServerAlias office.XXX.com
ProxyPass / http://192.168.200.200/
ProxyPassReverse / http://192.168.200.200/
SSLEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /etc/letsencrypt/live/office.XXX.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/office.XXX.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
onlyoffice-documentserver-*.conf on MIDEEL:
include /etc/nginx/includes/onlyoffice-http.conf;
server {
listen 0.0.0.0:80;
listen [::]:80 default_server;
server_name office.XXX.com;
server_tokens off;
include /etc/nginx/includes/onlyoffice-documentserver-*.conf;
location ~ /.well-known/acme-challenge {
root /var/www/onlyoffice/;
allow all;
}
}
Under this situation regular browser requests to office.XXX.com successfully resolve to OnlyOffice on MIDEEL with accepted SSL. However when trying to integrate into Nextcloud I am faced with a 302 error.
Please help!