improved nginx autoconfig