server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/html;
index index.php, index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ index.html index.php =404;
}
location /phpmyadmin {
index index.php;
}
}