Can I add a custom domain like a subdirectory?

I know how to setup service.example.com
But I want to make setup my custom domain as example.com/service

I’m using cloudflare for dns, if it could help.
Is there any way I could get what I want either setting up from cloudflare side or here

Thank you

Hi @ash-hashtag,

Sorry for only just seeing your question!

If I understand your question correctly, you can setup a custom domain on an app and bind /example to the service’s port. This will make your.custom.domain/example target your service and your.custom.domain/ will be free for another service inside the app.

Does this answer your question?