Skip to content

How to move Magento 2.4 admin to subdomain on Nginx?

I have a Magento 2.4.3 installation running on an Nginx webserver. I want to move the admin login from example.com/admin to admin.example.com. How do I do this on Nginx?