Parsing and adding a modified location list to nginix