Boot up nginx as standalone server instead of using netcat.