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.

http://lion.pavellion.com

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?

1 Reply

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

Reply

Please enter an answer
Tips:

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] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct