Rainer Jung wrote on Thu, Aug 06, 2015 at 12:56:21 +0200: > Am 06.08.2015 um 12:38 schrieb Stefan Sperling: > >On Thu, Aug 06, 2015 at 12:27:48PM +0200, Stefan Sperling wrote: > >>On Thu, Aug 06, 2015 at 12:13:07PM +0200, Rainer Jung wrote: > >>>But still the command does not do what was intended. It will return > >>>(example) > >>> > >>> Server version: Apache/2.4.4 (Unix) > >>> > >>>instead of the expected > >>> > >>> 2.4.4 > >> > >>This is so tricky to get right. > > I know. > > >>Can't httpd provide an easier way to get its version number? > >>At least in future relases? Please? :) > > We should ;)
Since three days ago, httpd trunk supports 'apxs -q HTTPD_VERSION' (outputs "2.5.0") and 'apxs -q HTTPD_MMN': https://svn.apache.org/r1693919