I tried something like that:
default.conf:
location / {
root /home/;
index index.html index.htm index.php;
location ~ \.(zip|rar)$ {
internal;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP$remote_ad
Hello,
My problem is very simple, I'd like to change from php readfile to
x-accel-redirect. I know exactly how to do it, but I have a problem:
My files are organized like that:
/home/ID(id of directory on mysql)/ .mp3 .xml and .zip/.rar
I would like to serve the .zip or .rar files by php, but .x