jericopulvera's avatar

Multiple laravel project in DigitalOcean Host. No laravel forge.

I wanted to create a website which will have this routes.

  • www.mywebsite.com -> This will be a one page portfolio that has the projects list I created.
  • www.mywebiste.com/e-commerce/public/ -> this will contain my e-commerce sample project
  • www.mywebsite.com/social-network/public/ -> this will contain my social network project
  • www.mywebsite.com/blog-website/public/ -> this will contain my blog samlple project

In a cPanel this is easy but in DigitalOcean can't seem to figure it out how to do this. how do I do this? what should I learn?

0 likes
3 replies
jericopulvera's avatar

This won't do since they must have difference database. and I might add another project later which is not made with laravel.

fideloper's avatar
Level 11

Go through these videos - the LEMP videos if you're on Nginx and LAMP if you're using Apache:

https://serversforhackers.com/series/lamplemp

They'll teach you how to set that up for yourself (and you can use whatever directory structure you'd like).

The key point will be setting up Virtual Hosts (Apache calls them VirtualHosts while Nginx just calls each site a Server).

2 likes

Please or to participate in this conversation.