Updates to nginx config and init.d scripts