cytopia / devilbox

A modern Docker LAMP stack and MEAN stack for local development
http://devilbox.org
MIT License
4.4k stars 654 forks source link

[Howto]: multitenancy #1008

Closed morsergen closed 1 year ago

morsergen commented 1 year ago

Have you already checked elsewhere?

What are you struggling with?

Good afternoon Can you help me? I'm trying to use Laravel 10 with the tenancyforlaravel package(https://tenancyforlaravel.com/docs/v3/quickstart/) and subdomains are not working for me. Is it possible to somehow solve this issue? Thank you.

What have you tried already?

-

What is your goal?

-

vikas5914 commented 1 year ago

@morsergen, You need to use the wildcard subdomain for this. Check this out (For Apache, just scroll up the page and you will see the details): https://devilbox.readthedocs.io/en/latest/vhost-gen/example-add-subdomains.html?highlight=subdomain#adding-catch-all-sub-domain-1

morsergen commented 1 year ago

@vikas5914 Thank you very much! Everything worked!