Wrong Content-Type

Igor Sysoev igor at sysoev.ru
Fri Dec 3 11:45:47 MSK 2010


On Fri, Dec 03, 2010 at 09:17:13AM +0100, Julien Vehent wrote:

> 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 ?

Does nginx proxy these files or handle them as static files ?


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list