Added nginx support, closes #1