DevOps
Setting Up Multiple Laravel Projects on Nginx in Linux
Aashish Timalsina
January 11, 2025
3 min read1,320 views
A practical guide to host multiple Laravel apps with Nginx, including cleanup, site templates, and service setup.
# Setting Up Multiple Laravel Projects on Nginx in Linux
This guide explains how to manage multiple Laravel projects under one Nginx setup.
## Clean Existing Config
Stop nginx, back up existing configuration, and reset sites-available and sites-enabled to avoid conflict from old settings.
## Prepare Runtime
Install php-fpm and required PHP extensions, configure the socket path, and create consistent project directories.
## Per-Project Server Blocks
Create one server block per Laravel project with the correct public root and PHP-FPM handler.
## Enable and Validate
Symlink each config into sites-enabled, update hosts entries for local mapping, and run nginx -t before restart.
## Ongoing Workflow
For each new project: add config, enable site, update hosts, set permissions, and reload nginx.
Aashish Timalsina
Full-stack developer focused on Laravel, Django, Docker, and practical server deployment workflows.
View Profile2,340 followers
Related Articles
DevOps
How to Securely Deploy Your App to a Server Using GitHub Actions
Automate server deployment with GitHub Actions using SSH key-based auth and secure repository secrets.
Aashish Timalsina
Mar 19, 2026
1,24098118m read
DevOps
Deploying a Laravel Application on DigitalOcean Using Docker (Step-by-Step Guide)
A practical, from-zero deployment walkthrough for Laravel on a DigitalOcean droplet using Docker, Nginx, PHP-FPM, and MySQL.
Aashish Timalsina
Dec 26, 2025
1,86012293m read
Table of Contents
Article Stats
Views1,320
Likes94
Comments6
Reading Time3 min