fix nginx config location and improve setting paths