fixed the compatible problem with nginx-1.5.8

Hi dude, 

As discussed early, now it supports nginx-1.5.8 and old versions in this pull request.