fixed templates, configure nginx script changed