nginx return 200 but empty reponse

  apache, nginx, php, ubuntu

I am currently migrating apache to nginx and I am struggling to get it working.
Basically I get a 200 response with no content. My nginx configuration is as below:

server {

  listen   [::]:8749 default ipv6only=on;

  server_name localhost;

   location / {
    root /build/website;
    index status.php index.html index.htm;
   }

  location ~ .php$ {
    fastcgi_pass unix:/var/run/php7.4-fpm.sock;

    fastcgi_index status.php;
    include fastcgi_params;
  }



}

Is there anything obvious I am missing?

Many thanks.
Cheers,
Vini

Source: Ask PHP

LEAVE A COMMENT