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...



Reply via email to