How to setup two domains for fronted and backend in MAMP PRO for Yii2 advanced template

How to setup two domains for fronted and backend in MAMP PRO for Yii2 advanced template

As you see in the guide:

Check the document for details.