Question
nginx domain resolves to incorrect site
I'm trying to host two domains on a single droplet. domainA.com and domainB.com
domainA.com correctly shows content from /home/public/domainA/index.php correctly.
domainB.com just shows domainA.com, whereas it should be showing the content of /home/public/domainB/index.php.
Both domains are using digitaloceans nameservers, have an entry in sites-available and sites-enabled.
domainA nginx config:
server {
listen 80;
root /home/public/domainA/;
index index.php index.html index.htm;
server_name domainA.com www.domainA.com;
...
domainB nginx config:
server {
listen 80
root /home/public/domainB/;
index index.php index.html index.htm;
server_name domainB.com www.domainB.com;
...
Any help resolving this matter would be much appreciated!
Thanks
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×