mime-types
richard lucassen <[email protected]> Mon, 23 Sep 2002 10:14:52 +0200
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Organization | CAM S&C |
| Message-ID | <[email protected]> |
I tried to install Uwe Ohse's patch for filetypes, but there is a lack
of documentation. I want publicfile to support jpg-files. When altering
the source this way, it works fine:
filetyp.c:
under this line
else if (str_equal(x,".jpeg")) result = "image/jpeg";
I add the line:
else if (str_equal(x,".jpg")) result = "image/jpeg";
But applying Uwe Ohse patch does noet work. Maybe I'm doing something
wrong:
mkdir /public/httpd/env
echo "\"image/jpeg\"" > /public/httpd/env/CT_jpg
echo "\"image/jpeg\"" > /public/httpd/env/CT_JPG
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
Anybody a hint?
Richard.