Steven Lembark <[EMAIL PROTECTED]> wrote:
>
>apache 1.3.14.
>
> havemultiple developers hacking html, mod_perl w/ own sandboxes.
>need them to start up their own servers on various ports (e.g.,
>8081, 8082...). we are using CVS and need to share access to a
>valid httpd.conf file.
>
>hmmm... we all use the same httpd.conf and we all step on one
>another w/ ports and dir's. not good.
>
>no way i know of use specify htdocs as a relative path or use
>$HOME or $SANDBOX to set it.
First, read up on <perl>...</perl> sections (Ch. 8 - appr. pg. 416 - in the
eagle book).
If everyone's uid is between 1024 and 65536 exclusive (or whatever the valid
range is for ports), you could do something like this:
<perl>
$DocumentRoot = $ENV{'HOME'} . "/htdocs";
$Port = $UID;
</perl>
If the uid is not conducive to this, at worst, you could do the following:
<perl>
%ports = (
# uid => port
1001 => 8000,
1002 => 8001,
1020 => 8002,
);
$Port = $ports{$UID};
</perl>
and hope only people with defined ports try to start the server.
Similar things can be done with the rest of the configuration, and everyone
can share the same configuration file.
------------------------------------+-----------------------------------------
James Smith - [EMAIL PROTECTED] | http://www.jamesmith.com/
[EMAIL PROTECTED] | http://sourcegarden.org/
[EMAIL PROTECTED] | http://cis.tamu.edu/systems/opensystems/
------------------------------------+------------------------------------------