Welcome! Log In Create A New Profile

Advanced

Re: Wrong Content-Type

December 03, 2010 04:24AM
On Fri, Dec 03, 2010 at 10:16:34AM +0100, Julien Vehent wrote:

> On 12/03/2010 09:45 AM, Igor Sysoev wrote:
> > 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 ?
> >
> >
>
> Static files stored in /var/www and owned by www-data (nginx process
> owner). It's the default debian configuration.
>
> Php5 is fastcgi on a local tcp socket.
> There is nothing wrong in error.log.

Are these CSS and JS files handled by PHP ?


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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Wrong Content-Type

Julien Vehent December 03, 2010 03:20AM

Re: Wrong Content-Type

Igor Sysoev December 03, 2010 03:50AM

Re: Wrong Content-Type

Julien Vehent December 03, 2010 04:22AM

Re: Wrong Content-Type

Igor Sysoev December 03, 2010 04:24AM

Re: Wrong Content-Type

Julien Vehent December 03, 2010 05:22AM

Re: Wrong Content-Type

Igor Sysoev December 03, 2010 06:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready