fix api location restrict by nginx server