On Tuesday, 7 March 2017 12:56:04 CET William A Rowe Jr wrote: > My comment was that having an alternate target name, e.g. httpd.prefork > or httpd.worker ends up resulting in $prefix/conf/httpd.prefork.conf as the > derived config file name (although that file is actually httpd.conf). The > fact that TARGET was overloaded as both the name of the binary and conf > file had caused me grief in the past. Splitting these two in apxs could > prove helpful to others. Adding the path-to-envvars would also be very > good. > > If some variable from apxs would help us identify that /etc/apache2 is > the current home of envvars ... then we can probably work around this > missing bit of apxs info.
Not sure if you still need it if you use apachectl. But looking into SBINDIR and if it's not there into SYSCONFDIR should work. At least this works with the default layout and Debian.
