server { listen 80; server_name incredibleapi.com www.incredibleapi.com; root /var/www/domains/incredibleapi.com/public; index index.php; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.3-fpm.sock; } }