Now when putting that direct address into NC, the connector never loads, doesn't give any error message or anything. It shows up with a blank white page. One other thing to note, when I go to NC on the internal IP address and then put the DocumentServer internal IP address into the NC connector admin page, everything loads and works 100% as it should. That makes me believe it is something to do with my reverse proxy setup. Here is that code for my virtual host in Apache:
- Code: Select all
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName onlyoffice.mydomain.com
ServerAdmin myemail@mydomaim.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =onlyoffice.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName onlyoffice.mydomain.com
ServerAdmin myemail@mydomaim.com
<proxy *>
AddDefaultCharset off
Order Allow,Deny
Allow from all
</proxy>
ProxyRequests Off
ProxyPreserveHost On
<location />
RequestHeader unset Accept-Encoding
ProxyPass http://192.168.0.22:78/
ProxyPassReverse http://192.168.0.22:78/
Order allow,deny
Allow from All
</location>
ProxyPass "/websocket" "wss://192.168.0.22:78/websocket"
ProxyPassReverse "/websocket" "wss://192.168.0.22:78/websocket"
SSLCertificateFile /usr/local/etc/letsencrypt/live/onlyoffice.mydomain.com/fullchain.pem
SSLCertificateKeyFile /usr/local/etc/letsencrypt/live/onlyoffice.mydomain.com/privkey.pem
</VirtualHost>
</IfModule>
The Document server is only accessible directly from an internal IP. All external websites for my services are served access through an apache webserver. This keeps flow of traffic to only one server and IP address. Nginx on the document server is not accessible or serving up the domain for onlyoffice-document server.