Refactor 4 nginx