Server not found for new subdomain

Hello All,

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.


server {

listen 80;

listen [::]:80;


root /home/shahzoor/;

index index.html index.php; include /home/shahzoor/*.conf;

include /home/shahzoor/*.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/$fastcgiscriptname;



Any more details wanted?

1 Reply

Nevermind. It got fixed after waiting for half day. :D


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct