The Apache proxy on the QNAP devices lacks a proper X-Forwarded-Proto setup.
cat /etc/apache-sys-proxy-ssl.conf
<VirtualHost _default_:443>
<IfModule proxy_module>
### CloudConnector3 section
Include /mnt/ext/opt/CloudConnector3/conf/apache-fastcgi.conf
</IfModule>
RequestHeader set X-Apache-Proxy "https"
Header always add Server " "
ServerName localhost
ServerAlias *.myqnapcloud.com
SSLEngine on
SSLProxyEngine on
SSLProxyCheckPeerName off
SSLProxyCheckPeerCN off
SSLHonorCipherOrder off
SSLCipherSuite EECDH+CHACHA20:EECDH+AES
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCertificateFile "/etc/stunnel/stunnel.pem"
#SSLCertificateChainFile "/etc/stunnel/uca.pem"
Proxy100Continue off
ProxyRequests Off
ProxyBadHeader Ignore
ProxyPreserveHost On
<directory proxy:*>
Require all granted
</directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^:]+)(:[0-9]+)?$
RewriteRule (^\/gq\/v1\/.*) /scale-out-manager$1 [PT,L]
Include /etc/default_config/apache-alias.conf
...
Include /etc/app_proxy.conf
...
</VirtualHost>
has a RequestHeader set X-Apache-Proxy "https" directive and ownCloud would need a RequestHeader set X-Forwarded-Proto "https" directive to function properly.
The Apache proxy on the QNAP devices lacks a proper X-Forwarded-Proto setup.
cat /etc/apache-sys-proxy-ssl.conf
has a
RequestHeader set X-Apache-Proxy "https"
directive and ownCloud would need aRequestHeader set X-Forwarded-Proto "https"
directive to function properly.