Question
Welcome to nginx message after moving site to new subdomain
I changed the DNS of my sites to point towards a different app and moved my old site to a different subdomain.
However, whenever I try and load the old site on the new subdomain I get the Welcome to Ngix home page. When I move the old site back it its original domain, the site loads perfectly.
Read a bit on this and trying to update my /etc/nginx/sites-available/default to include a link to my subdomain
I opened the default file using:
sudo nano /etc/nginx/sites-available/default
Not sure where exactly to include a link to my subdomain.
This is what I see:
server {
listen 80;
listen [::]:80;
server_name_example.com;
root /var/www/example.com;
index index.html
location / {
try_fules $uri $uri/ =404;
}
}
My subdomain is dashboard.site.com
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.
×