Rewrite question?

I’m trying to build xenforo bbs using hestiacp and I’m wondering how to configure the rewrite?

Please explain?

template for nginx + pgp-fpm