Problem :
As of nginx is not accepting my php file to put it on my sub domain. I have setup php-fpm etc. I need help with it and below is the config.
nano /etc/nginx/sites-available/default
Replace
server {
listen 80;
listen [::]:80;
root /var/www/cantShowItsPrivate/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name lol.com;
location / {
try_files $uri $uri/ =404;
}
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
}
location ~ /.ht {
deny all;
}
}
https://www.digitalocean.com/community/questions/nginx-not-showing-php-files