@superturrican
I'm an enthusiastic COPS user. I use Apache and before today had never installed NGINX.
So today I devoted considerable time and effort to installing NGINX and trying to make COPS work.
OK, I got COPS to work the way I wanted it to
EXCEPT when I want to use it with my Kobo Glo HD. Just like you I have
not been able to make
rewriting (and thus downloading on a Kobo) work.
What did I do:
1 - $config['cops_use_url_rewriting'] = "1";
2 - in /etc/nginx/sites-available I added:
Code:
#Useful only for Kobo reader
location /download/ {
rewrite ^/download/(\d+)/(\d+)/.*\.(.*)$ /fetch.php?data=$1&db=$2&type=$3 last;
rewrite ^/download/(\d+)/.*\.(.*)$ /fetch.php?data=$1&type=$2 last;
break;
}
Have you done more or less? Maybe post the relevant lines of your config files.
PS1: $config['cops_x_accel_redirect'] = "X-Accell-Redirect"; broke loading of images, but also did not help with downloading.
PS2: I installed nginx on a rather old server using an obsolete OS and with an old version of nginx / PHP and the latest version of COPS. And everything worked except rewriting. Maybe I did something wrong?