Hello again,

On Fri, 21 Nov 2003, angie ahl wrote:

> of course how to do it is another thing
> ;)

To include parts of the configuration file selectively you can start
Apache with something like

httpd -Dconfig1 -f/some/place/where/I/keep/my/httpd.conf

and in the httpd.conf you can put something like

<IfDefine config1>
  Port 8080
  DocumentRoot ....
</IfDefine>
<IfDefine config2>
  Port 8081
  DocumentRoot ....
</IfDefine>

and so on, limited only by your imagination and your willingness to type

man httpd

and read what it says. :)

You probably just need to change the port it's listening on and the
document root.  You can fiddle with other stuff if the fancy takes you.
For example you might want to run Apache's children as a different
user, and have different numbers for things like MaxRequestsPerChild
depending on which server is being configured.

> I searched the archives for "Panther" as I'd spotted other people having
> problems with what apple have done:
> 
> http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=86918;
> search_string=panther;guest=1612745&t=search_engine#86918
> 
> and 
> 
> http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=87554;
> search_string=panther;guest=1612745&t=search_engine#87554

Hmmm.  The solutions to these problems were posted there too, but I
note that one solution is very much a work in progress.  However they
should be enough for you to get it working.  Did you say you really
need CGI.pm?  Less bloated alternatives for example are CGI::Lite or
Apache::Request which have been mentioned here on this List many times.

> I'd like to keep my own set up safe from being screwed with by Apple
> updates. It's not entirely clear what they're going to update when and
> it can bite you in the butt

I don't believe they'll want to change your webserver config files.
(You could always set the 'immutable' bit. :)

> So I thought I need to install a fresh copy of apache and mod_erpl, or
> more precisely compile them from source as the "Getting your feet wet"
> article suggests.
> 
> Have I misunderstood that?

No, if you want to install over the top of an existing version of
mod_perl you can go right ahead and do it, but it sounds to me like
you might just want to create an Apache in your home directory and
run it from there for testing.  Just omit the 'make install' step
and run Apache from your home directory with the same userid as you
use normally and with a groupid for which you have permissions.

<IfDefine config1>
  user angie
  group users
  Port 8080
  DocumentRoot ....
</IfDefine>

Be careful doing things like this on a publically accessible server...

73,
Ged.


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to