是否可以使用Nginx将Web应用程序转发到不同的端口80端点?

I've got 2 webapps, a Flask (Python) app and a Golang app, which I'd like to run on 1 website.

I was wondering if it would be possible to show these 2 webapps at 2 different endpoints. So, for example, the apps run at example.com:8001/flask-app and example.com:8001/golang-app, and example.com/app1 shows the Flask app and example.com/app2 shows the Golang app.

Is it possible to configure nginx to perform this function?