server { listen 80 default_server; server_name _; root /var/www/html/public; index index.php; charset utf-8; add_header X-Robots-Tag "noindex, nofollow" always; add_header X-Content-Type-Options nosniff always; location / { try_files $uri $uri/ /index.php?$query_string; } location = /index.php { include fastcgi_params; fastcgi_pass app:9000; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_hide_header X-Powered-By; } location ~ \.php$ { return 404; } location ~ /\. { deny all; } }