httpd: Fix a couple of bugs

Target: trunk
Require-notes: no
Require-book: no
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/7002/
(cherry picked from commit ed1975e03a69065d1fe2b9af5f2570341e9bd13e)
Merge pull request #571 from gbehrmann/fix/2.9/rb7002

Fix/2.9/rb7002