Nginx

You need the following configuration to run HTMLy on Nginx with PHP-FPM, example:

server {
  listen 80 default_server;
  listen [::]:80 default_server;

  server_name example.com www.example.com;
  root /var/www/html;

  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log;

  index index.php;

  # Block access to .ini files. Important.
  location ~\.(ini)$ {
    deny all;
    return 404;
  }

  location / {
    try_files $uri $uri/ /index.php?$args;
  }

  location ~ .php$ {
      fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
      fastcgi_index  index.php;
      fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
      include        fastcgi_params;
  }
}