Is it possible to create a reverse proxy on Cloudways?

I’m looking to use a php-based CMS (Craft) as a headless API for a JavaScript front-end (either Vue or Svelte), but I’ll need either Apache or Nginx to handle 301 redirects because they will be controlled via the CMS. I understand that I’ll need to create a reverse proxy for this. Is it possible to create a reverse proxy on Cloudways? If it is possible, how the process might differ from creating this proxy directly on a server like Digital Ocean or AWS? Thanks!

At Cloudways we use Nginx for rever proxy. However for the redirection you may set rules inside your .htaccess file.

Thank You.
Ibad Rehman