Server not found for new subdomain
I just created a subdomain and configured nginx file correctly I guess. Copied the same nginx from the working subdomain. I get Server not found. I have added a A record under DNS Manager. Check error.log, nothing related to this.
NGINX CONF
server {
listen 80;
listen [::]:80;
server_name lion.pavellion.com;
root /home/shahzoor/lion.pavellion.com/;
index index.html index.php; include /home/shahzoor/lion.pavellion.com/*.conf;
include /home/shahzoor/lion.pavellion.com/*.conf;
location / {
try_files $uri $uri/ =404;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgiparam SCRIPTFILENAME /home/shahzoor/lion.pavellion.com$fastcgiscriptname;
}
}
Any more details wanted?