NAS4Free with COPS: Does anyone have this working using HTTPS?
Hi there,
I'd appreciate some help. I've followed the guidelines and have COPS working on my NAS using any PCs, iOS and Android devices on my LAN.
However, if I make my web server use https then Android devices will not download (the download manager shows files as being 'Queued' and, after a while, they are marked 'Unsuccess...'.
I have the following settings:
-1-
In config_local.php last line -> $config['cops_use_url_rewriting'] = "1"
I suppose it should be "1" so that the 'Auxiliary parameters' will work, but I've also tried to
put it to "0" with no difference (it still works for PCs but not Android devices).
-2-
In NAS4Free webGUI -> Services -> Auxiliary parameters ->
url.rewrite-once = ("/cops/download/(.*)/.*\.(.*)$" => "/cops/fetch.php?data=$1&type=$2",
"^/cops/download/(\d+)/(\d+)/.*\.(.*)$" => "/cops/fetch.php?data=$1&db=$2&type=$3")
Since '/cops/download' doesn't exist I've created it under '/usr/local/www/cops', but I don't think
it would make a difference.
-3-
I've also registered the (self-signed) certificate (part of my NAS4Free install) in my PC's browser
and in Android (i.e. Settings -> Security -> Credential storage -> Install from SD card).
I consider https a must before my server gets online, but I have little idea about how to make COPS downloads available for also Android devices. Any ideas?
Last edited by Pachuqismo; 08-18-2016 at 05:49 PM.
Reason: Clarifications
|