update custom nginx config so it works with php scripts