server { listen 0.0.0.0:80; access_log /var/log/nginx/host.access.log main; error_log /var/log/nginx/host.error.log; root /var/www/html; location / { index index.php index.html; try_files $uri /index.php$is_args$args; } location ~ \.php$ { include fastcgi_params; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } }