Been searching around for the proper config to have nextcloud setup through a reverse proxy. The setup works fine by going directly to the internal ip address, which is great (also works by going directly to the outside ip with port fowarding.) I am working to set up NC through my domain (nextcloud.domain.com). My current apache reverse proxy setup is:
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName nextcloud.mydomain.com
ServerAdmin myemail@server.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =nextcloud.mydomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName nextcloud.mydomain.com
ServerAdmin myemail@server.com
<proxy *>
AddDefaultCharset off
Order Allow,Deny
Allow from all
</proxy>
ProxyRequests Off
ProxyPreserveHost On
<location />
RequestHeader unset Accept-Encoding
ProxyPass https://192.168.0.47:1143/
ProxyPassReverse https://192.168.0.47:1143/
Order allow,deny
Allow from All
</location>
SSLCertificateFile /usr/local/etc/letsencrypt/live/mydomain.com/fullchain.pem
SSLCertificateKeyFile /usr/local/etc/letsencrypt/live/mydomain.com/privkey.pem
</VirtualHost>
</IfModule>"
Anything stand out or has anyone know where I should look first? With this config here is the page I see when going to the site: [link] (http://imgur.com/pcVHpqM)