server { listen 0.0.0.0:8080; server_name myapp.com; root /app; location / { try_files $uri $uri/index.php; } location ~ \.php$ { # fastcgi_pass [PHP_FPM_LINK_NAME]:9000; fastcgi_pass phpfpm:9000; fastcgi_index index.php; include fastcgi.conf; } }