server { listen 80; location / { root /usr/share/nginx/html; index index.html index.php; } #error_page 404 /404.html; # pass the PHP scripts to FastCGI server listening on php:9000 # location ~ \.php$ { root html; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$fastcgi_script_name; include fastcgi_params; } }