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_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } teby jordanmoreira57 - Nginx Mailing List - English
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 .xml and .mp3 needs to be allowed from accessing directly. When I put /home/ID as internal, isn'by jordanmoreira57 - Nginx Mailing List - English