RE: Newbie (possible) css/xhtml oddity..

"Angelica" <[email protected]> Mon, 28 Jul 2003 20:49:58 -0400
Newsgroups gmane.comp.djb.publicfile
Message-ID <000301c3556b$55ad7ac0$4101a8c0@mommypc>
That did it ;)

Thank you very much, how else can I check what other content-types
publicfile does(not) support?



-----Original Message-----
From: Zak Johnson [mailto:[email protected]] 
Sent: Monday, July 28, 2003 8:31 PM
To: [email protected]
Subject: Re: Newbie (possible) css/xhtml oddity..


On 2003-07-28 19:36-0400, Angelica wrote:
> I have an xhtml page that I have been working on, and well.. It shows
up
> great in Internet Explorer and Netscape from an apache server but when
I
> put it on publicfile the css's don't show and the page doesn't look
> right in mozilla and it's offspring.. (firebird, mozilla, and
netscape).

publicfile as distributed does not know anything about *.css files, and
so serves them with a text/plain Content-Type header.  Uwe Ohse has a
patch which allows publicfile to read variables from its environment and
alter the default filetype:

	
<URL:http://www.ohse.de/uwe/patches/publicfile-0.52-filetype-diff>

You'll also need to add the appropriate variable to publicfile's
environment (the following is untested, but should work):

	mkdir /service/httpd/env
	echo text/css >/service/httpd/env/CT_css
	sed -e 's}^exec e}exec envdir ./env e}' <run >run.tmp
	mv run.tmp run
	svc -t /service/httpd

> IE always looks correct no matter what server its on.

IE doesn't always (ever?) respect the Content-Type header.

-Zak