fix nginx config location & improve setting paths