I’ve got a shopify website called https://mydomain-com.
This website has 3 subdomains, that are pointing to another server ip (A- record). On my server I’ve got 1 main root folder. How can I make sure all 3 subdomains are pointing to that root folder?
Because right now it’s looking for the subdomain folder. I can’t point my root domain ip to the server because it’s a shopify website.
How can I make sure the subdomains are pointing to that 1 folder on my nginx server?
2
Answers
You need to create configs for each subdomain. And specify root directory for those subdomains. Example:
You can this in NGINX configuration file in your server
However if you want to have different subdomains point to different folders, you can change the
server_name
value to the SUBDOMAIN-NAME as follows: