How to set the gitlab ce pages when gitlab ce nginx in another port?

I changed the port of gitlab nginx.When I follow with the video to set the Gitlab ce pages,got the 500 error.what shall i do?thx