0

I have locally installed nginx and a docker container (https://hub.docker.com/r/phpdockerio/php72-fpm/)

But, how can i access php-fpm socket in a local nginx config?

location ~ \.php$ {
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass php-fpm:9000;
  fastcgi_index index.php;
  #include fastcgi_params;
  include fastcgi.conf;
}

But, seems like php-fpm:9000 is not working.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.