move apigee gateway url config out of lua code and into location conf block