write nginx vhost config only when using nginx