I am having issue with deploying my medusa backend on EC2 instance. I have followed all steps as per this document.
https://pevey.com/medusa-server-on-ubuntu/2-configuring-the-server
The API & Admin is running fine when I check locally inside the instance. However, when I try to open admin in browser it shows "Invalid Host Header" error.
My nginx configuation is attached. Any insight will be much appreciated.
Install Medusa and All Related Services, including Redis, Postgres, and Meilisearch, on Ubuntu 22.04