[nginx] Adding support for rewrite and error_page