[1.7.x] Fixed #23350 -- Updated mod_wsgi auth example to use less memory.

Thanks Graham Dumpleton for the report.

Backport of c7f7432be5 from master