Nginx Configuration for PHP Application
Nginx server configuration for docker based with Laravel appLeave a Comment
server { server_name domain-name.com; root /var/www/project-name/public; index index.php index.html index.htm; # Handle requests for static files location / { try_files $uri $uri/ /index.php?$query_string; } # Pass PHP scripts to PHP-FPM running in the app container location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }