Skip to content

Instantly share code, notes, and snippets.

@kalair92
kalair92 / laravel-project.conf
Created August 10, 2023 10:42
Nginx configuration for Laravel
# *projectname* Change the name as per your desired project directory
server {
listen 80;
server_name localhost;
root /var/www/*projectname*/public; #root_path
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;