mime types

Gregg Reynolds dev at mobileink.com
Tue Mar 13 22:04:48 MSK 2007


I'm trying to get wordpress running via nginx through fastcgi using a
Unix Domain socket.  The stylesheet seems to be coming through as
text/html, although the link ref in the html source has the mime type
set correctly.  See below.  The source of wp looks like it sets
content type correctly; is my nginx configuration getting in the way
of Content-type?

I tried

   fastcgi_pass_header Content-type;

without success.

I have also  fastcgi_param CONTENT-TYPE $content_type;

Any advice?  Thanks,


Doc source:
<link rel="stylesheet"
type="text/css" media="screen" />

LiveHTTP headers transcript:


GET /blog/wp-content/themes/default/style.css HTTP/1.1
Host: example.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv: Gecko/20070219 Firefox/
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://example.org/blog/
Cache-Control: max-age=0

HTTP/1.x 200 OK
Server: nginx/0.5.14
Date: Tue, 13 Mar 2007 18:42:10 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.2.1

More information about the nginx mailing list