Date: Wed, 12 May 1999 13:47:56 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Gary Kline <kline@tera.com> Cc: questions@freebsd.org Subject: Re: what's the best HTML server? Message-ID: <19990512134756.C53380@scientia.demon.co.uk> In-Reply-To: <199905112207.PAA22405@athena.tera.com> References: <199905112207.PAA22405@athena.tera.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline wrote: > What's the simplest server that will let me play > with cgi-bin and so forth? Apache has been suggested, which I like too, but if you want a really small, simple server, you could look at thttpd. I looked at it a bit, but didn't feel like converting some of my mod_perl scripts to normal CGI scripts, so I'll stick with Apache+mod_perl. http://www.acme.com/software/thttpd/ (It's not in the ports, but the following shar file should give you a port-like directory to `make install' from.) # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # thttpd # thttpd/Makefile # thttpd/pkg # thttpd/pkg/PLIST # thttpd/pkg/DESCR # thttpd/pkg/COMMENT # thttpd/files # thttpd/files/md5 # thttpd/files/thttpd.sh # echo c - thttpd mkdir -p thttpd > /dev/null 2>&1 echo x - thttpd/Makefile sed 's/^X//' >thttpd/Makefile << 'END-of-thttpd/Makefile' X# New ports collection makefile for: thttpd X# Version required: 2.04 X# Date created: 17 April 1999 X# Whom: Ben Smithurst <ben@scientia.demon.co.uk> X# X# $Id$ X# X XDISTNAME= thttpd-2.04 XCATEGORIES= www XMASTER_SITES= http://www.acme.com/software/thttpd/ XEXTRACT_SUFX= .tar.Z X XMAINTAINER= ben@scientia.demon.co.uk X XGNU_CONFIGURE= yes X XMAN1= makeweb.1 htpasswd.1 XMAN8= nph-redirect.8 syslogtocern.8 ssi.8 thttpd.8 X Xpre-install: X @${MKDIR} ${PREFIX}/www ${PREFIX}/www/cgi-bin X Xpost-install: X @${SED} -e 's#__PREFIX__#${PREFIX}#' \ X < ${FILESDIR}/thttpd.sh > ${PREFIX}/etc/rc.d/thttpd.sh X @chmod 555 ${PREFIX}/etc/rc.d/thttpd.sh X X.include <bsd.port.mk> END-of-thttpd/Makefile echo c - thttpd/pkg mkdir -p thttpd/pkg > /dev/null 2>&1 echo x - thttpd/pkg/PLIST sed 's/^X//' >thttpd/pkg/PLIST << 'END-of-thttpd/pkg/PLIST' Xetc/rc.d/thttpd.sh Xsbin/htpasswd Xsbin/makeweb Xsbin/syslogtocern Xsbin/thttpd Xwww/cgi-bin/nph-redirect Xwww/cgi-bin/phf Xwww/cgi-bin/ssi X@dirrm www/cgi-bin X@dirrm www END-of-thttpd/pkg/PLIST echo x - thttpd/pkg/DESCR sed 's/^X//' >thttpd/pkg/DESCR << 'END-of-thttpd/pkg/DESCR' Xthttpd is a simple, small, portable, fast, and secure HTTP server. X XSimple: It handles only the minimum necessary to implement HTTP/1.1. X XSmall: See the size comparison chart at Xhttp://www.acme.com/software/thttpd/notes.html#sizes. It also has a Xvery small run-time size, since it does not fork and is very careful Xabout memory allocation. X XPortable: It compiles cleanly on many different operating systems. X XFast: In typical use it's about as fast as the best full-featured servers X(Apache, NCSA, Netscape). Under extreme load it's much faster. X XSecure: It goes to great lengths to protect the web server machine Xagainst attacks and breakins from other sites. X XIt also has one extremely useful feature (URL-traffic-based throttling) that Xno other server currently has. X Xhttp://www.acme.com/software/thttpd/ X X- Ben Smithurst Xben@scientia.demon.co.uk END-of-thttpd/pkg/DESCR echo x - thttpd/pkg/COMMENT sed 's/^X//' >thttpd/pkg/COMMENT << 'END-of-thttpd/pkg/COMMENT' Xa simple, small, portable, fast, and secure HTTP server. END-of-thttpd/pkg/COMMENT echo c - thttpd/files mkdir -p thttpd/files > /dev/null 2>&1 echo x - thttpd/files/md5 sed 's/^X//' >thttpd/files/md5 << 'END-of-thttpd/files/md5' XMD5 (thttpd-2.04.tar.Z) = df4d68964ebe8d2d1b135db9b463b841 END-of-thttpd/files/md5 echo x - thttpd/files/thttpd.sh sed 's/^X//' >thttpd/files/thttpd.sh << 'END-of-thttpd/files/thttpd.sh' X#!/bin/sh X Xecho -n " thttpd" Xthttpd -d __PREFIX__/www -u nobody -c "/cgi-bin/*" -l /var/log/thttpd_access END-of-thttpd/files/thttpd.sh exit -- Ben Smithurst ben@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990512134756.C53380>