adds rewrite to apex for nginx conf