How can I create multiple sub-prefixes for a single proxy app?

Hi Everyone,

May i check how do i go about Create multiple sub-prefix under 1 Single proxy app?

For example

https://test-site.myshopify.com/apps/test will point to 1 path on the external server to https://xxx.com/test1/

https://test-site.myshopify.com/apps/test1 will point to 1 path on the external server to https://xxx.com/test2/

https://test-site.myshopify.com/apps/test2 will point to 1 path on the external server to https://xxx.com/test3/

Or it can be
https://test-site.myshopify.com/apps/test will point to 1 path on the external server to https://xxx.com/test/?page=1

https://test-site.myshopify.com/apps/test1 will point to 1 path on the external server to https://xxx.com/test/?page=2

https://test-site.myshopify.com/apps/test2 will point to 1 path on the external server to https://xxx.com/test/?page=3

Thank everyone.