diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..cb7d259 --- /dev/null +++ b/default.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name localhost; + + root /var/www/html/public; + + index index.php; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + fastcgi_pass php-fpm:9000; # Use the service name + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} \ No newline at end of file