fix port must be int

fix "location" directive is not allowed here