httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: [PATCH] allow implicit ServerRoot via apxs
Date Sat, 01 Nov 2003 02:30:01 GMT

> The easiest way I've found to do this in Apache::Test is attached. It 
> extracts the "PREFIX" from apxs and uses that as the default inherited 
> ServerRoot value. If a value is hard-coded into the global httpd.conf, 
> it supercedes the apxs value and everything works just like before.

hmm.  it looks like PREFIX is only related to the installation, whereas 
ServerRoot, if not specified, is hard-coded to /usr/local/apache (according 
to include/httpd.h in 2.0).  so, PREFIX isn't much help if one installs then 
moves the binaries to a new location.

but I suppose that a guess is better than nothing if we don't have a 
ServerRoot to pull from the default httpd.conf, and PREFIX and ServerRoot 
match for me :)

> 
> The patch is against 1.05 and I tested it with Apache 1.3.29 and 1.3.28.

cool.  I'll give it a whirl next week under a few different conditions.

thanks!

--Geoff

btw, doesn't it seem strange that prefix defaults to /usr/local/apache2 in 
config.layout but ServerRoot defaults to /usr/local/apache?  hmm...


Mime
View raw message