Added check for nginx systems

The globals where missing on my nginx server, this hot fix will fix it.