Did you also add wp.domain.com as an A record in your domain registry to point to your server IP? There are probably other ways of doing this as well. Whether you are using the DNS on the hosting provider to manage your dns or you go to where you have your domain registered, there you can usually add the wp.domain.com as an A record pointing to your server’s public IP address. Then it may take a little time for that to propagate out so you can ping wp.domain.com and see the ip address you added. I apologize if this sounds a little confusing.
I usually have it setup in it’s own .conf file with the root entry pointing/to/your/folder.
So example you have:
server { listen 80; server_name wp.domain.com; root /path/to/your/subdomain/folder Then the rest of your setup here . . . }Then don’t forget to use
sudo ln -s /etc/nginx/sites-available/yourfilename.conf /etc/nginx/sites-enabled/yourfilename.confYou will also need to restart your nginx server sudo systemctl restart nginx
If you want to post your conf file we can take a look at it as well.