support old nginx versions for previous commit

based on commit 7957d05c2559f4db92b6d0940ce752608786cdc5:
    fixed the compatible problem with nginx-1.5.8

Signed-off-by: paulyang <y_y@neusoft.com>