You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/10/15 19:53:25 UTC

[Bug 55654] Extract variables from configuration without starting server

https://issues.apache.org/bugzilla/show_bug.cgi?id=55654

--- Comment #1 from Arno Töll <ar...@debian.org> ---
For context, to fully understand the problem:

Debian/Ubuntu packages set - for example - the httpd user in its httpd.conf to
${APACHE_RUN_USER}, a non-terminal value which is interpreted and evaluated at
runtime by apachectl with information sourced from /etc/apache2/envvars. 

The downside of that is, that you cannot start apache simply by executing
"httpd start" (or "apache2 start" effectively on Debianish systems), but you
have to use apachectl and you have an additional layer of indirection.

The background is, that we need reliably to know what the user is set to, so
that, for example, we can create volatile directories at boot/start time BEFORE
apache starts. Now, you know yourself how many funny ways are define a
configuration key in Apache to the server context. For example, think of keys
learned through inclusion of third files etc. 

It's just not reliable to simply parse the main httpd.conf file without having
access to the full httpd configuration file parser engine. That's why we did it
the way we did by adding that layer of indirection.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org