I have a notebook containing xampp installed, whose configuration file httpd.conf apache contains the following passage:
--------------------------------------------------------------------------------------------------
ScriptAlias /Downloads/ "C:/Users/Name/Downloads/"
<Directory "C:/Users/Name/Downloads">
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
---------------------------------------------------------------------------------------------------
In the folder C:/Users/Name/Downloads/ contains "01.bat" and "01.mp3" files.
When typing in the browser's address "http://localhost/Downloads/01.bat", it downloads the file "01.bat" successfully.
The same does not happen when typing "http://localhost/Downloads/01.mp3" because it returns the message: "Internal Server Error (error 500)". In addition, the Apache error.log file displays the related "01.mp3" file error message:
---------------------------------------------------------------------------------------------------
[Fri Aug 08 20:57:49.404396 2014] [win32:error] [pid 1008:tid 1664] [client 127.0.0.1:37803] AH02102: C:/Users/Name/Downloads/01.mp3 is not executable; ensure interpreted scripts have "#!" or "'!" first line
[Fri Aug 08 20:57:49.405397 2014] [cgi:error] [pid 1008:tid 1664] (9)Bad file descriptor: [client 127.0.0.1:37803] AH01222: don't know how to spawn child process: C:/Users/Name/Downloads/01.mp3
---------------------------------------------------------------------------------------------------
What to do to download the file "01.mp3" by the browser?