<div>
                    @Cliff: Here is the customer's vhost:
                </div><div><div></div><blockquote type="cite"><div>root@shadow [/etc/cpnginx/custom]# cat /usr/local/nginx/conf/vhost.conf | grep domain.com</div><div>########### Vhost configuration of  mega-sound.be</div><div><span>server_name  </span>domain.com<span> www.</span>domain.com<span>;</span></div><div><span><span class="Apple-tab-span" style="white-space:pre">    </span>access_log /usr/local/apache/domlogs/</span>domain.com<span>;</span></div><div><span>        proxy_redirect  http://www.</span>domain.com<span>:8888   http://www.mega-sound.be;</span></div><div><span>        proxy_redirect  http://</span>domain.com<span>:8888   http://</span>domain.com<span>;</span></div><div><span>        proxy_redirect  http://</span>domain.com<span>:8888   http://</span>domain.com;</div><div><span>include "/etc/cpnginx/custom/</span>domain.com<span>";</span></div></blockquote><div><span></span></div></div><div><span><br></span></div><div><span>@locojohn: Here is the custom file:</span></div><div><span><div></div></span><blockquote type="cite"><span><div>root@shadow [/etc/cpnginx/custom]# cat domain.com </div></span>location ~ /(?<filename>(?!/).+\.mp3)$ {<span><div><span class="Apple-tab-span" style="white-space:pre"> </span>types {</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>application/octet-stream mp3;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>add_header Content-Disposition "attachment; filename=\"$filename\"";</div><div>}</div></span></blockquote><span><div></div></span></div>
                <div><div><br></div><div>@locojohn: I'm using your custom config :/ . Plus, here is my nginx -V:</div><div><div></div><blockquote type="cite"><div>root@shadow [/etc/cpnginx/custom]# /usr/local/nginx/sbin/nginx -V</div><div>nginx version: nginx/1.0.11</div><div>built by gcc 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) </div><div>configure arguments: --prefix=/usr/local/nginx --with-openssl=/usr/</div></blockquote><div><br></div><div>When I access a .mp3, here is the answer:</div><div></div><blockquote type="cite"><div>HTTP/1.1 200 OK</div><div>Server: nginx</div><div>Date: Wed, 28 Mar 2012 23:06:25 GMT</div><div>Content-Type: audio/mpeg</div><div>Content-Length: 8976405</div><div>Last-Modified: Mon, 26 Mar 2012 18:50:14 GMT</div><div>Connection: keep-alive</div><div>Expires: Thu, 29 Mar 2012 23:06:25 GMT</div><div>Cache-Control: max-age=86400</div><div>Accept-Ranges: bytes</div></blockquote><div></div><div> </div><div>Thank you for your help.</div><div></div></div><div>---<br>Cordialement, Adnan RIHAN.<br>
<u>Président</u>-<u>Fondateur</u> de l'association (de loi 1901) <a href="http://www.virtual-info.info/" target="_blank"><b>Virtual-Info</b></a>, <i>hébergeur Web et Serveurs de Jeux</i>.<br>
<a href="http://rihan.fr/" target="_blank"><u>Consultant</u></a>-<u>Technicien Supérieur</u> en <i>Informatique de Gestion</i>.<br><u>Ambassadeur</u> <a href="http://lyt.me/7E" target="_blank"><b>Qt</b></a> (Projet <a href="http://rihan.fr/fr/projets/tagpg" target="_blank"><b>Tag-PG</b></a>).<u><br></u></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">Le jeudi 29 mars 2012 à 00:57, locojohn a écrit :</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><blockquote type="cite"><div>Sorry but, what do you mean? Isn't "headers" a standard module ? How</div></blockquote><div>to check the compiled modules please ?</div><div><br></div><div>nginx -V</div><div><br></div><div>Try my solution, it works for me.  </div><div><br></div><div>Andrejs</div><div><br></div><div>Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,224499,224582#msg-224582">http://forum.nginx.org/read.php?2,224499,224582#msg-224582</a></div><div><br></div><div>_______________________________________________</div><div>nginx mailing list</div><div><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></div><div><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>