It was a error in the nginx config all is well now!by wideawake - Nginx Mailing List - English
I noticed that if I use this in my config then shipped/Dir 1/file.exe returns file not found in browser and shipped/dir/file.exe still returns proper file extension (exe, etc) but contains the html content of the download page. location = /files { root /home/mysite/public_html/shipped; internal; add_header Content-Disposition attachment; } header("X-Accel-Redirect: /files/" . $by wideawake - Nginx Mailing List - English
I tried adding what you suggested like so location = /shipped { add_header Content-Disposition attachment; root /home/mysite/public_html/shipped; internal; } and by just adding the line to the site config. Neither of which worked unfortunately.by wideawake - Nginx Mailing List - English
I have a script that uses x-accel-redirect on a nginx server to send large files (150mb+). The script serves downloads fine as long as their is a space in the name of the directory but not when the directory is a single word. Anyone know why it would be doing so when the file exists and the path is correct? Layout: /Dir/file.exe /Dir2/file.exe /Another Dir/file.exe If it's /Another Dir/file.by wideawake - Nginx Mailing List - English