atom feed6 messages in ru.sysoev.nginxWrong Content-Type
FromSent OnAttachments
Julien VehentDec 3, 2010 12:16 am 
Igor SysoevDec 3, 2010 12:45 am 
Julien VehentDec 3, 2010 1:16 am 
Igor SysoevDec 3, 2010 1:19 am 
Julien VehentDec 3, 2010 2:17 am 
Igor SysoevDec 3, 2010 2:59 am 
Subject:Wrong Content-Type
From:Julien Vehent (jul@linuxwall.info)
Date:Dec 3, 2010 12:16:50 am
List:ru.sysoev.nginx

Hi list,

I'm having a content-type issue with nginx 0.7 on Debian Squeeze.

I have mime.types included in the "http" directive, but when requesting CSS or Javascript file, the content type is set to text/html. (the application is Roundcube 0.5 beta).

I have found a workaround by adding this in my server declaration:

location ~ \.css { add_header Content-Type text/css; }

But it's quite ugly. Is there any better way to fix this problem ?

Thanks, Julien