Added nginx mode

Added nginx mode