Re: Standards for WebServers
On Tue, 29 Oct 1996, Christoph Lameter wrote:
> 1. A directory to put cgi-bin code in
> 2. A directory to put regular html code in
why not a file called /etc/webpaths, containing lines like:
SERVERROOT=/var/web
DOCUMENTROOT=/var/web/webspace
CGIDIR=/usr/lib/httpd/cgi-bin
if all install scripts used this file to decide where to put/move things
then there should be no problem.
btw, here's a useful shell script fragment (using ed) for editing config
files on the fly. Assumes that there are replaceable parameters like
@SERVERROOT@:
source /etc/webpaths
cat <<__EOF__ | /bin/ed -s config_file_to_be_edited
,s/@SERVERROOT@/$SERVERROOT/g
,s/@DOCUMENTROOT@/$DOCUMENTROOT/g
,s/@CGIDIR@/$CGIDIR/g
wq
__EOF__
this can, of course, be wrapped in a for loop.
This technique can also be used as a general principle (say, in
conjunction with Lars' config tool, or with a generic /etc/hostconfig
file rather than a specific /etc/webpaths file) for many packages.
ed would have to be made a required package to ensure that it would work
on all systems.
Craig
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: