[prev in list] [next in list] [prev in thread] [next in thread]
List: publicfile
Subject: mine-types
From: richard lucassen <mailinglists () lucassen ! org>
Date: 2002-09-23 12:09:11
[Download RAW message or body]
[sorry if this has been posted twice on the list]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic