5 messages in ru.sysoev.nginxmime types
FromSent OnAttachments
Gregg ReynoldsMar 13, 2007 12:04 pm 
RoxisMar 13, 2007 12:39 pm 
Gregg ReynoldsMar 13, 2007 1:19 pm 
RoxisMar 13, 2007 1:41 pm 
Gregg ReynoldsMar 13, 2007 2:11 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:mime typesActions...
From:Gregg Reynolds (dev-@public.gmane.org)
Date:Mar 13, 2007 12:04:25 pm
List:ru.sysoev.nginx

HI,

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,

-gregg

========== Doc source: ... <link rel="stylesheet" href="http://example.org/blog/wp-content/themes/default/style.css" type="text/css" media="screen" /> ...

LiveHTTP headers transcript:

http://example.org/blog/wp-content/themes/default/style.css

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:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 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