Nginx refactoring, new common templates