server { listen ${FRONTEND_PORT} default_server; root /app/frontend/public; access_log /var/log/nginx/frontend.access.log; error_log /var/log/nginx/frontend.error.log; index index.php index.html index.htm; location / { try_files $uri /index.php$is_args$args; } location ~ \.php$ { fastcgi_pass frontend:9000; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_index index.php; include fastcgi_params; } }