Re: mime-types
richard lucassen <[email protected]> Mon, 23 Sep 2002 15:22:27 +0200
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Organization | CAM S&C |
| Message-ID | <[email protected]> |
On Monday 23 September 2002 15:06, you wrote: > > But applying Uwe Ohse patch does noet work. Maybe I'm doing > > something wrong: > > You certainly are. > > > mkdir /public/httpd/env > > echo "\"image/jpeg\"" > /public/httpd/env/CT_jpg > > echo "\"image/jpeg\"" > /public/httpd/env/CT_JPG > > I can't think of a browser that accepts a Content-Type header like: > > Content-Type: "image/jpeg" > > Every browser, however, accepts: > > Content-Type: image/jpeg > > See the difference? Yep that was it. Netscape however accepts the version with "", but instead of showing the image, is does a "save as" operation. But now it is working correctly :-) > > I alter the runfile as follows (I add "/usr/local/bin/envdir > > /public/httpd/env"): > > > > #!/bin/sh > > exec 2>&1 > > exec /usr/local/bin/envdir /public/httpd/env > > /usr/local/bin/envuidgid qftp softlimit -o20 -d50000 tcpserver > > -vDRHl0 -b50 -c100 0 80 /usr/local/publicfile/bin/httpd /public/file > > Assuming the last three lines are actually on a single line, did you > remember to restart publicfile after making the above change? Of course! Thnx! Richard.