xxxxxxxxxx
server {
listen 80;
listen [::]:80;
root /var/www/your-laravel-app/public;
index index.php;
server_name your-domain.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
```
Replace `your-domain.com` with your own domain and `/var/www/your-laravel-app/public` with the path to your Laravel application's public directory.