Custom configuration
Adnan RIHAN
adnan at rihan.fr
Wed Mar 28 22:50:44 UTC 2012
> Which vhost is the one in question? Can you paste *only* the relevant
> server block?
@Cliff: I didn't find them :/ I've asked the CPanel module devs to tell me where are the vhosts. Actually, I think nginx is just a "proxy" to apache, but it's strange... It means apache is still running and .htaccess working... I'll tell you as soon as I have the response.
> Also, you mention stuff in "custom", but I don't see where any of the
> config you pasted includes a "custom" config.
My custom conf is in "/custom/". This is what I had before @locojohn tip.
> root at shadow [/etc/cpnginx/custom]# cat mega-sound.be
> location ~* \.mp3$ {
> types {
> application/octet-stream mp3;
> }
> }
> For the following to work you need headers module installed:
Sorry but, what do you mean? Isn't "headers" a standard module ? How to check the compiled modules please ?
> location ~ /(?<filename>(?!/).+\.mp3)$ {
> types {
> application/octet-stream mp3;
> } add_header Content-Disposition "attachment; filename=\"$filename\"";
> }
>
>
This is my new custom config file. Nothing changed. Still audio/mpeg :/
---
Cordialement, Adnan RIHAN.
Président-Fondateur de l'association (de loi 1901) Virtual-Info (http://www.virtual-info.info/), hébergeur Web et Serveurs de Jeux.
Consultant (http://rihan.fr/)-Technicien Supérieur en Informatique de Gestion.
Ambassadeur Qt (http://lyt.me/7E) (Projet Tag-PG (http://rihan.fr/fr/projets/tagpg)).
Le mercredi 28 mars 2012 à 20:31, locojohn a écrit :
> Adnan,
>
> For the following to work you need headers module installed:
>
> location ~ /(?<filename>(?!/).+\.mp3)$ {
> types {
> application/octet-stream mp3;
> }
> add_header Content-Disposition "attachment;
> filename=\"$filename\"";
> }
>
> Kind regards,
>
> Andrejs
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,224499,224577#msg-224577
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org (mailto:nginx at nginx.org)
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120329/ae87df28/attachment.html>
More information about the nginx
mailing list