4 messages in ru.sysoev.nginxRe: Wrong mime type for xml feed?
FromSent OnAttachments
Ezra ZygmuntowiczSep 26, 2006 9:26 am 
Igor SysoevSep 26, 2006 1:18 pm 
Ezra ZygmuntowiczSep 26, 2006 1:34 pm 
Igor SysoevSep 26, 2006 1:40 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:Re: Wrong mime type for xml feed?Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Sep 26, 2006 1:18:17 pm
List:ru.sysoev.nginx

On Tue, 26 Sep 2006, Ezra Zygmuntowicz wrote:

Now my question.. I am having an issue that I can't seem to figure out. My .xml atom feeds are being served as text/plain. Here is a curl:

ez ez $ curl -I http://mephistoblog.com/feed/atom.xml HTTP/1.1 200 OK Server: nginx/0.4.0 Date: Tue, 26 Sep 2006 16:22:13 GMT Content-Type: text/plain; charset=ISO-8859-1 Connection: keep-alive ETag: "45193b37-88b9-7401b" Last-Modified: Tue, 26 Sep 2006 14:37:43 GMT Content-Length: 35001

THe conf file is fairly complicated with a bunch of rewrites so I am sure it is my fault that it is not working. Could anyone shed some light on this for me? Here is the conf file:

http://pastie.caboo.se/13599

As I understand from your configuration, "/feed/atom.xml" may be handled by backend. And that request is really handled by backend: nginx never set the "ETag" header line, so the "Content-Type: text/plain" is set by backend too. nginx does not change the "Content-Type", so you need configure it on backend.