I need to serve a bunch of gzipped MIDI files from an Apache server. The catch is that when the user requests them, the response should come back with a "audio/midi" content-type header and not a gzip file or multipart header. In other words, Im trying to render the content(play the MIDI) off of the server and not download it to their drive. Is there an easy way I can do this ?
migrated from stackoverflow.com Mar 12 '11 at 23:50
This question came from our site for professional and enthusiast programmers.
To ensure that Apache looks for randomFile.xyz.gz when the browser randomFile.xyz
Need to add
in the apache config.
To ensure the content-type is appropriate, we need to add the following