server { listen 80 default_server; listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm;
server_name _;
location / {
try_files $uri/ /index.html index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
How to make a web server can read the sub folder (the sub folder name is pendaftaranpkl with index.php) I try to access it but its doesn't show anything.