Skip to content
Advertisement

How to serve two laravel apps on 1 domain?

I have two laravel apps like this:

JavaScript

I’m trying to serve them on linux machine, I can’t seem to get them to work together. I want to have two urls like this: https://test.example.co

https://test.example.co/dashboard

JavaScript

Advertisement

Answer

I succeeded serving them using another subdomain, the "/dashboard" idea didn’t work. I hope someone can suggest the correct way to do it, I would change the accepted answer.

I have now example.com and admin.example.com.

Nginx config as below:

JavaScript

And the second one is:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement