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. > > Can't httpd provide an easier way to get its version number? > At least in future relases? Please? :)
Also note that svn trunk already has a different implementation of this check. See the following revisions: http://svn.apache.org/r1693135 http://svn.apache.org/r1693138 http://svn.apache.org/r1693159